Skip to content

Commit

Permalink
Add check if server.default_server is defined in nginx proxy template
Browse files Browse the repository at this point in the history
  • Loading branch information
bensofficial committed Nov 5, 2024
1 parent 549248d commit e1da11d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roles/proxy/templates/nginx_proxy.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ server {

{% for server in servers %}
server {
listen 443 ssl{% if server.default_server %} default_server{% endif %};
listen 443 ssl{% if server.default_server is defined and server.default_server is not none and server.default_server %} default_server{% endif %};
listen 443 quic{% if loop.index == 1 %} reuseport{% endif %};
listen [::]:443 ssl{% if server.default_server %} default_server{% endif %};
listen [::]:443 ssl{% if server.default_server is defined and server.default_server is not none and server.default_server %} default_server{% endif %};
listen [::]:443 quic{% if loop.index == 1 %} reuseport{% endif %};
http2 on;
http3 on;
Expand Down

0 comments on commit e1da11d

Please sign in to comment.