From 6b857f1b5e49fd76cc9066a649648a26736e5b94 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Thu, 28 Jan 2021 23:38:25 +0200 Subject: [PATCH] My IP service. Reply with the client's public facing (internet) IP. --- conf.d/myip.shore.co.il.conf | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 conf.d/myip.shore.co.il.conf diff --git a/conf.d/myip.shore.co.il.conf b/conf.d/myip.shore.co.il.conf new file mode 100644 index 0000000..55aa113 --- /dev/null +++ b/conf.d/myip.shore.co.il.conf @@ -0,0 +1,22 @@ +server { + listen 80; + listen [::]:80; + server_name myip.shore.co.il; + include snippets/robots-disallow-all.conf; + include snippets/ads-txt.conf; + include snippets/security-txt.conf; + error_page 404 /; + location = / { return 200 "$remote_addr"; } +} + +server { + listen 443 ssl; + listen [::]:443 ssl; + server_name myip.shore.co.il; + include snippets/robots-disallow-all.conf; + include snippets/ads-txt.conf; + include snippets/security-txt.conf; + include snippets/ssl.conf; + error_page 404 /; + location = / { return 200 "$remote_addr"; } +} -- GitLab