diff options
Diffstat (limited to 'packages/crashbox-config/ip/ip.conf')
-rw-r--r-- | packages/crashbox-config/ip/ip.conf | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/packages/crashbox-config/ip/ip.conf b/packages/crashbox-config/ip/ip.conf new file mode 100644 index 0000000..2f3ab1e --- /dev/null +++ b/packages/crashbox-config/ip/ip.conf @@ -0,0 +1,13 @@ +# Echo remote IP address +# https://michael.lustfield.net/nginx/simple-ip-echo +server { + server_name ip.*; + listen 80; + listen [::]:80; + listen 443 ssl; + listen [::]:443 ssl; + location = / { + default_type text/plain; + echo $remote_addr; + } +}
\ No newline at end of file |