Loading conf.d/global.conf +2 −1 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 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 +2 −1 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 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"; } }