add security.txt

This commit is contained in:
psy 2024-04-21 11:12:36 +02:00
parent cd5d0b8232
commit 999ad37b11
No known key found for this signature in database
GPG key ID: 30546501FF65B1A5
2 changed files with 13 additions and 0 deletions

View file

@ -113,6 +113,13 @@ server {
{% endif %}
{% if nginx.security_txt is defined %}
location /.well-known/security.txt {
add_header Content-Type text/plain;
return 200 "{{ nginx.security_txt | replace('\n', '\\n') }}";
}
{% endif %}
{% if vhost.auth.enable %}
auth_basic "restricted area";
auth_basic_user_file {{ vhost.auth.path }};