mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-08-21 00:17:38 +00:00
add PROXY to 404, redirection and default host.
This commit is contained in:
@@ -6,6 +6,7 @@ server {
|
|||||||
{% include "_certificates.conf" %}
|
{% include "_certificates.conf" %}
|
||||||
{% include "_hsts.conf" %}
|
{% include "_hsts.conf" %}
|
||||||
{% include "_forced_ssl.conf" %}
|
{% include "_forced_ssl.conf" %}
|
||||||
|
{% include "_proxy_protocol.conf" %}
|
||||||
|
|
||||||
access_log /data/logs/dead-host-{{ id }}_access.log standard;
|
access_log /data/logs/dead-host-{{ id }}_access.log standard;
|
||||||
error_log /data/logs/dead-host-{{ id }}_error.log warn;
|
error_log /data/logs/dead-host-{{ id }}_error.log warn;
|
||||||
|
@@ -2,19 +2,25 @@
|
|||||||
# Default Site
|
# Default Site
|
||||||
# ------------------------------------------------------------
|
# ------------------------------------------------------------
|
||||||
{% if value == "congratulations" %}
|
{% if value == "congratulations" %}
|
||||||
# Skipping output, congratulations page configration is baked in.
|
# Skipping output, congratulations page configuration is baked in.
|
||||||
{%- else %}
|
{%- else %}
|
||||||
server {
|
server {
|
||||||
|
{% if enable_proxy_protocol == 1 or enable_proxy_protocol == true%}
|
||||||
|
listen 88 proxy_protocol;
|
||||||
|
{% if ipv6 -%}
|
||||||
|
listen [::]:88 proxy_protocol;
|
||||||
|
{% endif %}
|
||||||
|
{% else -%}
|
||||||
listen 80 default;
|
listen 80 default;
|
||||||
{% if ipv6 -%}
|
{% if ipv6 -%}
|
||||||
listen [::]:80 default;
|
listen [::]:80 default;
|
||||||
{% else -%}
|
{% endif %}
|
||||||
#listen [::]:80 default;
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
server_name default-host.localhost;
|
server_name default-host.localhost;
|
||||||
access_log /data/logs/default-host_access.log combined;
|
access_log /data/logs/default-host_access.log combined;
|
||||||
error_log /data/logs/default-host_error.log warn;
|
error_log /data/logs/default-host_error.log warn;
|
||||||
{% include "_exploits.conf" %}
|
{% include "_exploits.conf" %}
|
||||||
|
{% include "_proxy_protocol.conf"}
|
||||||
|
|
||||||
include conf.d/include/letsencrypt-acme-challenge.conf;
|
include conf.d/include/letsencrypt-acme-challenge.conf;
|
||||||
|
|
||||||
|
@@ -8,6 +8,7 @@ server {
|
|||||||
{% include "_exploits.conf" %}
|
{% include "_exploits.conf" %}
|
||||||
{% include "_hsts.conf" %}
|
{% include "_hsts.conf" %}
|
||||||
{% include "_forced_ssl.conf" %}
|
{% include "_forced_ssl.conf" %}
|
||||||
|
{% include "_proxy_protocol.conf" %}
|
||||||
|
|
||||||
access_log /data/logs/redirection-host-{{ id }}_access.log standard;
|
access_log /data/logs/redirection-host-{{ id }}_access.log standard;
|
||||||
error_log /data/logs/redirection-host-{{ id }}_error.log warn;
|
error_log /data/logs/redirection-host-{{ id }}_error.log warn;
|
||||||
|
Reference in New Issue
Block a user