Skip to content

Instantly share code, notes, and snippets.

@LaurenceJJones
Last active January 2, 2023 13:04
Show Gist options
  • Save LaurenceJJones/a4dbb06c06b34c14f62b241ce7ce5c21 to your computer and use it in GitHub Desktop.
Save LaurenceJJones/a4dbb06c06b34c14f62b241ce7ce5c21 to your computer and use it in GitHub Desktop.
nginx security.txt
# security.txt
location /security.txt {
return 301 /.well-known/security.txt;
}
location = /.well-known/security.txt {
add_header Content-Type text/plain;
return 200 'Contact: mailto:[email protected]\nExpires: 2024-01-01T00:00:00.000Z';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment