Skip to content

Commit

Permalink
enable ipv6 on nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
Roger Sikorski authored and astehlik committed Jun 15, 2022
1 parent 15830e3 commit 8b3a297
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions roles/installer/templates/config.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ data:
{% if route_tls_termination_mechanism | lower == 'passthrough' %}
server {
listen 8052 default_server;
listen [::]:8052 default_server;
server_name _;

# Redirect all HTTP links to the matching HTTPS page
Expand All @@ -155,6 +156,7 @@ data:
server {
{% if route_tls_termination_mechanism | lower == 'passthrough' %}
listen 8053 ssl;
listen [::]:8053 ssl;

ssl_certificate /etc/nginx/pki/web.crt;
ssl_certificate_key /etc/nginx/pki/web.key;
Expand All @@ -165,6 +167,7 @@ data:
ssl_prefer_server_ciphers on;
{% else %}
listen 8052 default_server;
listen [::]:8052 default_server;
{% endif %}

# If you have a domain name, this is where to add it
Expand Down

1 comment on commit 8b3a297

@SnelsSM
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can not do it this way!
Now the container will not start on hosts with IPv6 disabled.
Need an additional setting to manage IPv6.

Please sign in to comment.