Commit 20338d6c authored by nimrod's avatar nimrod
Browse files

Add ads.txt to all domains.

parent bbad7733
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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";
    }
}