mirror of
https://git.dn42.dev/lare/myip.dn42.git
synced 2024-10-24 03:11:33 +02:00
add static html site with clientside js
This commit is contained in:
parent
7feff33885
commit
eb09c13ce0
4 changed files with 127 additions and 7 deletions
|
@ -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 = / {
|
||||
#
|
||||
#}
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue