Skip to content
Snippets Groups Projects
Commit 4697c55b authored by nimrod's avatar nimrod
Browse files

Add security.txt to all domains.

parent 20338d6c
Branches
No related tags found
No related merge requests found
Pipeline #195 failed
...@@ -6,3 +6,4 @@ tcp_nodelay on; ...@@ -6,3 +6,4 @@ tcp_nodelay on;
server_tokens off; server_tokens off;
include snippets/common-headers.conf; include snippets/common-headers.conf;
include snippets/ads-txt.conf; include snippets/ads-txt.conf;
include snippets/security-txt.conf;
location = /.well-known/security.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: mailto:security@shore.co.il\nEncryption: https://www.shore.co.il/blog/static/nimrod.asc";
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment