add security.txt
This commit is contained in:
parent
cd5d0b8232
commit
999ad37b11
2 changed files with 13 additions and 0 deletions
|
|
@ -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 }};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue