Loading conf.d/global.conf +1 −0 Changes for conf.d/global.conf: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -5,3 +5,4 @@ tcp_nopush on; tcp_nodelay on; server_tokens off; include snippets/common-headers.conf; include snippets/ads-txt.conf; snippets/ads-txt.conf 0 → 100644 +9 −0 Changes for snippets/ads-txt.conf: 9 added lines, 0 removed lines. Original line number Diff line number Diff line location = /ads.txt { if ($scheme = http) { return 301 https://$host$request_uri; } if ($scheme = https) { add_header Content-Type "text/plain; charset=utf-8"; return 200 "contact=webmaster@shore.co.il\n"; } } Loading
conf.d/global.conf +1 −0 Changes for conf.d/global.conf: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -5,3 +5,4 @@ tcp_nopush on; tcp_nodelay on; server_tokens off; include snippets/common-headers.conf; include snippets/ads-txt.conf;
snippets/ads-txt.conf 0 → 100644 +9 −0 Changes for snippets/ads-txt.conf: 9 added lines, 0 removed lines. Original line number Diff line number Diff line location = /ads.txt { if ($scheme = http) { return 301 https://$host$request_uri; } if ($scheme = https) { add_header Content-Type "text/plain; charset=utf-8"; return 200 "contact=webmaster@shore.co.il\n"; } }