Skip to content

Commit

Permalink
Merge pull request #107 from ls1intum/fix/nginx/default-server-undefined
Browse files Browse the repository at this point in the history
`Development`: Add check if server.default_server is defined in nginx proxy template
  • Loading branch information
Hialus authored Nov 5, 2024
2 parents 549248d + e1da11d commit 8238ce8
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 8238ce8

Please sign in to comment.