mirror of
https://github.com/FAUSheppy/athq-vm-management
synced 2026-01-22 05:47:37 +01:00
feat: support for extra locations
This commit is contained in:
@@ -10,6 +10,16 @@ server{
|
||||
{% if acme %}
|
||||
include acme-challenge.conf;
|
||||
{% endif %}
|
||||
|
||||
{% if extra_location %}
|
||||
location {{ extra_location["location"] }} {
|
||||
{{ extra_location["content"] }}
|
||||
{% if extra_location["location-auth"] %}
|
||||
auth_basic "{{ extra_location["location-auth"] }}";
|
||||
auth_basic_user_file /etc/nginx/{{ extra_location["location-auth"] }}.htpasswd;
|
||||
{% endif %}
|
||||
}
|
||||
{% endif %}
|
||||
|
||||
location / {
|
||||
proxy_pass http://{{ targetip }}:{{ targetport }};
|
||||
|
||||
Reference in New Issue
Block a user