mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-08-16 13:56:52 +00:00
add a selection to the proxy editing page and passes that down into the templates. Removed set_proxy_header from locations and moved to server directive. these will inherit down into locations if they are not defined there.
34 lines
796 B
Plaintext
34 lines
796 B
Plaintext
location {{ path }} {
|
|
proxy_pass {{ forward_scheme }}://{{ forward_host }}:{{ forward_port }}{{ forward_path }};
|
|
|
|
{% if access_list_id > 0 %}
|
|
{% if access_list.items.length > 0 %}
|
|
# Authorization
|
|
auth_basic "Authorization required";
|
|
auth_basic_user_file /data/access/{{ access_list_id }};
|
|
|
|
{{ access_list.passauth }}
|
|
{% endif %}
|
|
|
|
# Access Rules
|
|
{% for client in access_list.clients %}
|
|
{{- client.rule -}};
|
|
{% endfor %}deny all;
|
|
|
|
# Access checks must...
|
|
{% if access_list.satisfy %}
|
|
{{ access_list.satisfy }};
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
{% include "_assets.conf" %}
|
|
{% include "_exploits.conf" %}
|
|
|
|
{% include "_forced_ssl.conf" %}
|
|
{% include "_hsts.conf" %}
|
|
|
|
{{ advanced_config }}
|
|
}
|
|
|