Skip to content

Commit

Permalink
Avoid bind IPv6 failure
Browse files Browse the repository at this point in the history
If the host does not provide IPv6 loopback address the stream configuration fails.

As only 127.0.0.1 is actually required, remove the IPv6 bind completely.
  • Loading branch information
DavidePrincipi authored Oct 3, 2023
1 parent e1dd592 commit e50c933
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion imageroot/templates/nginx.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ stream {
# Domain {{ item.domain }}
server {
proxy_pass {{ item.domain | replace('.', '_') }};
listen [::1]:{{ item.listen_port }};
listen 127.0.0.1:{{ item.listen_port }};

proxy_ssl {{ 'on' if item.tls == '1' else 'off' }};
Expand Down

0 comments on commit e50c933

Please sign in to comment.