mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-08-02 15:33:32 +00:00
28 lines
791 B
Plaintext
28 lines
791 B
Plaintext
{% include "_header_comment.conf" %}
|
|
|
|
{% if enabled %}
|
|
server {
|
|
{% include "_listen.conf" %}
|
|
{% include "_certificates.conf" %}
|
|
{% include "_hsts.conf" %}
|
|
{% include "_forced_ssl.conf" %}
|
|
|
|
{{ advanced_config }}
|
|
include conf.d/include/letsencrypt-acme-challenge.conf;
|
|
include conf.d/include/block-exploits.conf;
|
|
{% if use_default_location %}
|
|
location / {
|
|
include conf.d/include/letsencrypt-acme-challenge.conf;
|
|
{% if preserve_path == 1 or preserve_path == true %}
|
|
return {{ forward_http_code }} {{ forward_scheme }}://{{ forward_domain_name }}$request_uri;
|
|
{% else %}
|
|
return {{ forward_http_code }} {{ forward_scheme }}://{{ forward_domain_name }};
|
|
{% endif %}
|
|
}
|
|
{% endif %}
|
|
|
|
# Custom
|
|
include /data/nginx/custom/server_redirect.conf;
|
|
}
|
|
{% endif %}
|