File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 6
6
{% include "_certificates.conf" %}
7
7
{% include "_hsts.conf" %}
8
8
{% include "_forced_ssl.conf" %}
9
+ {% include "_proxy_protocol.conf" %}
9
10
10
11
access_log /data/logs/dead-host-{{ id }}_access.log standard;
11
12
error_log /data/logs/dead-host-{{ id }}_error.log warn;
Original file line number Diff line number Diff line change 2
2
# Default Site
3
3
# ------------------------------------------------------------
4
4
{% if value == "congratulations" %}
5
- # Skipping output, congratulations page configration is baked in.
5
+ # Skipping output, congratulations page configuration is baked in.
6
6
{%- else %}
7
7
server {
8
+ {% if enable_proxy_protocol == 1 or enable_proxy_protocol == true%}
9
+ listen 88 proxy_protocol;
10
+ {% if ipv6 -%}
11
+ listen [::]:88 proxy_protocol;
12
+ {% endif %}
13
+ {% else -%}
8
14
listen 80 default;
9
15
{% if ipv6 -%}
10
16
listen [::]:80 default;
11
- {% else -%}
12
- #listen [::]:80 default;
17
+ {% endif %}
13
18
{% endif %}
14
19
server_name default-host.localhost;
15
20
access_log /data/logs/default-host_access.log combined;
16
21
error_log /data/logs/default-host_error.log warn;
17
22
{% include "_exploits.conf" %}
23
+ {% include "_proxy_protocol.conf"}
18
24
19
25
include conf.d/include/letsencrypt-acme-challenge.conf;
20
26
Original file line number Diff line number Diff line change 8
8
{% include "_exploits.conf" %}
9
9
{% include "_hsts.conf" %}
10
10
{% include "_forced_ssl.conf" %}
11
+ {% include "_proxy_protocol.conf" %}
11
12
12
13
access_log /data/logs/redirection-host-{{ id }}_access.log standard;
13
14
error_log /data/logs/redirection-host-{{ id }}_error.log warn;
You can’t perform that action at this time.
0 commit comments