feat: better basic auth support

This commit is contained in:
2023-01-03 23:11:25 +01:00
parent eea47e3525
commit 9d4b15def6
2 changed files with 6 additions and 1 deletions

View File

@@ -15,6 +15,10 @@ server{
proxy_pass http://{{ targetip }}:{{ targetport }};
proxy_set_header Host $http_host;
{{ proxy_pass_blob }}
{% if basicauth %}
auth_basic "{{ basicauth }}";
auth_basic_user_file /etc/nginx/{{ basicauth }}.htpasswd;
{% endif %}
}
}