mirror of
https://github.com/xiaoxinpro/nginx-proxy-manager-zh.git
synced 2025-02-02 09:48:13 -05:00
Templates update
This commit is contained in:
parent
5db1d0f6ab
commit
cf417fb658
@ -1,8 +1,8 @@
|
|||||||
{% include "_header_comment.conf" %}
|
{% include "_header_comment.conf" %}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
{% include "_listen.conf" %}
|
{% include "_listen.conf" %}
|
||||||
{% include "_certificates.conf" %}
|
{% include "_certificates.conf" %}
|
||||||
|
|
||||||
access_log /data/logs/dead_host-{{ id }}.log proxy;
|
access_log /data/logs/dead_host-{{ id }}.log proxy;
|
||||||
|
|
||||||
|
@ -4,10 +4,10 @@ server {
|
|||||||
set $server {{ forward_ip }};
|
set $server {{ forward_ip }};
|
||||||
set $port {{ forward_port }};
|
set $port {{ forward_port }};
|
||||||
|
|
||||||
{% include "_listen.conf" %}
|
{% include "_listen.conf" %}
|
||||||
{% include "_certificates.conf" %}
|
{% include "_certificates.conf" %}
|
||||||
{% include "_assets.conf" %}
|
{% include "_assets.conf" %}
|
||||||
{% include "_exploits.conf" %}
|
{% include "_exploits.conf" %}
|
||||||
|
|
||||||
access_log /data/logs/proxy_host-{{ id }}.log proxy;
|
access_log /data/logs/proxy_host-{{ id }}.log proxy;
|
||||||
|
|
||||||
@ -20,7 +20,7 @@ server {
|
|||||||
auth_basic_user_file /config/access/{{ access_list_id }};
|
auth_basic_user_file /config/access/{{ access_list_id }};
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
{% include "_forced_ssl.conf" %}
|
{% include "_forced_ssl.conf" %}
|
||||||
|
|
||||||
# Proxy!
|
# Proxy!
|
||||||
include conf.d/include/proxy.conf;
|
include conf.d/include/proxy.conf;
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
{% include "_header_comment.conf" %}
|
{% include "_header_comment.conf" %}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
{% include "_listen.conf" %}
|
{% include "_listen.conf" %}
|
||||||
{% include "_certificates.conf" %}
|
{% include "_certificates.conf" %}
|
||||||
{% include "_assets.conf" %}
|
{% include "_assets.conf" %}
|
||||||
{% include "_exploits.conf" %}
|
{% include "_exploits.conf" %}
|
||||||
|
|
||||||
access_log /data/logs/redirection_host-{{ id }}.log proxy;
|
access_log /data/logs/redirection_host-{{ id }}.log proxy;
|
||||||
|
|
||||||
@ -13,7 +13,7 @@ server {
|
|||||||
# TODO: Preserve Path Option
|
# TODO: Preserve Path Option
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
{% include "_forced_ssl.conf" %}
|
{% include "_forced_ssl.conf" %}
|
||||||
|
|
||||||
return 301 $scheme://{{ forward_domain_name }}$request_uri;
|
return 301 $scheme://{{ forward_domain_name }}$request_uri;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user