mirror of
https://github.com/jc21/nginx-proxy-manager.git
synced 2024-08-30 18:22:48 +00:00
17 lines
481 B
Plaintext
17 lines
481 B
Plaintext
location {{ path }} {
|
|
|
|
{% if static == 0 or static == false %}
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Forwarded-Scheme $scheme;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
proxy_pass {{ forward_scheme }}://{{ forward_host }}:{{ forward_port }}{{ forward_path }};
|
|
{% else %}
|
|
alias {{ root_dir }}/$1;
|
|
try_files $uri /{{ index_file }} =200;
|
|
{% endif %}
|
|
|
|
{{ advanced_config }}
|
|
}
|
|
|