add static html site with clientside js

This commit is contained in:
lare 2022-09-18 11:51:33 +02:00
parent 7feff33885
commit eb09c13ce0
Signed by: lare
GPG key ID: 30C10A93B8B8E9FE
4 changed files with 127 additions and 7 deletions

View file

@ -5,7 +5,11 @@ server {
server_name *.myip.dn42;
server_name 172.22.0.81;
server_name [fd42:d42:d42:81::1];
location /raw {
root /path/to/myip-wwwroot;
index index.html;
location /raw {
return 200 '$remote_addr\n';
add_header Content-Type text/plain;
}
@ -17,9 +21,9 @@ server {
return 200 '{"version": "1.0", "ip": "$remote_addr", "server": "$server_addr","node_as": "<yourAS-without-AS>", "node_location": "<node country code>", "node_id": "<nodename or so>"}';
}
location = / {
root /path/to/myip-wwwroot;
index index.html;
}
#location = / {
#
#}
}