29 lines
717 B
Text
29 lines
717 B
Text
{%- include "_header_comment.conf" %}
|
|
|
|
{%- if enabled %}
|
|
server {
|
|
{%- include "_listen.conf" %}
|
|
{%- include "_certificates.conf" %}
|
|
{%- include "_hsts.conf" %}
|
|
{%- include "_forced_tls.conf" %}
|
|
{%- include "_brotli.conf" %}
|
|
|
|
include conf.d/include/always.conf;
|
|
|
|
{{ advanced_config }}
|
|
|
|
{%- if use_default_location %}
|
|
location / {
|
|
include conf.d/include/always.conf;
|
|
{%- if preserve_path %}
|
|
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 %}
|