Skip to content

Commit 1e080c2

Browse files
committed
enable standard ports when proxy protocol is enabled
1 parent db2f4d4 commit 1e080c2

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

backend/templates/_listen.conf

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,29 @@
11
{% if enable_proxy_protocol == 1 or enable_proxy_protocol == true%}
22
listen 88 proxy_protocol;
3+
listen 80;
34
{% if ipv6 -%}
45
listen [::]:88 proxy_protocol;
5-
{% endif %}
6+
listen [::]:80;
7+
{% endif %}
68
{% else -%}
79
listen 80;
810
{% if ipv6 -%}
911
listen [::]:80;
10-
{% endif %}
12+
{% endif %}
1113
{% endif %}
1214
{% if certificate -%}
1315
{% if enable_proxy_protocol == 1 or enable_proxy_protocol == true%}
1416
listen 444 ssl proxy_protocol;
17+
listen 443 ssl;
1518
{% if ipv6 -%}
1619
listen [::]:444 ssl proxy_protocol;
17-
{% endif %}
20+
listen [::]:443 ssl;
21+
{% endif %}
1822
{% else -%}
1923
listen 443 ssl;
2024
{% if ipv6 -%}
2125
listen [::]:443 ssl;
22-
{% endif %}
26+
{% endif %}
2327
{% endif %}
2428
{% else %}
2529
#listen [::]:443;

0 commit comments

Comments
 (0)