Commit 6b857f1b authored by nimrod's avatar nimrod
Browse files

My IP service.

Reply with the client's public facing (internet) IP.
parent 630d2743
Loading
Loading
Loading
Loading
+22 −0
Original line number Diff line number Diff line
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"; }
}