mirror of
https://github.com/xiaoxinpro/nginx-proxy-manager-zh.git
synced 2025-01-24 13:48:14 -05:00
21 lines
383 B
Handlebars
21 lines
383 B
Handlebars
|
{{#if enabled}}
|
||
|
server {
|
||
|
{{> inc_listen}}
|
||
|
{{> inc_certificates}}
|
||
|
{{> inc_hsts}}
|
||
|
{{> inc_forced_ssl}}
|
||
|
|
||
|
access_log {{npm_data_dir}}/logs/dead-host-{{id}}_access.log standard;
|
||
|
error_log {{npm_data_dir}}/logs/dead-host-{{id}}_error.log warn;
|
||
|
|
||
|
{{advanced_config}}
|
||
|
|
||
|
{{#if use_default_location}}
|
||
|
location / {
|
||
|
{{> inc_hsts}}
|
||
|
return 404;
|
||
|
}
|
||
|
{{/if}}
|
||
|
}
|
||
|
{{/if}}
|