mirror of
https://github.com/FAUSheppy/athq-vm-management
synced 2025-12-07 22:21:35 +01:00
feat: better basic auth support
This commit is contained in:
@@ -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 %}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user