Skip to content
Snippets Groups Projects
Commit 20338d6c authored by nimrod's avatar nimrod
Browse files

Add ads.txt to all domains.

parent bbad7733
No related branches found
No related tags found
No related merge requests found
...@@ -5,3 +5,4 @@ tcp_nopush on; ...@@ -5,3 +5,4 @@ tcp_nopush on;
tcp_nodelay on; tcp_nodelay on;
server_tokens off; server_tokens off;
include snippets/common-headers.conf; include snippets/common-headers.conf;
include snippets/ads-txt.conf;
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";
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment