Skip to content

Commit

Permalink
Merge pull request #774 from aledbf/fix-tcp-upd-listen
Browse files Browse the repository at this point in the history
Add IPv6 support in TCP and UDP stream section
  • Loading branch information
aledbf authored May 28, 2017
2 parents 90e1ab3 + 40cd78d commit efd6714
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controllers/nginx/rootfs/etc/nginx/template/nginx.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,7 @@ stream {

server {
listen {{ $tcpServer.Port }};
{{ if $IsIPV6Enabled }}listen [::]:{{ $tcpServer.Port }}{{ end }}
proxy_pass tcp-{{ $tcpServer.Backend.Namespace }}-{{ $tcpServer.Backend.Name }}-{{ $tcpServer.Backend.Port }};
}
{{ end }}
Expand All @@ -556,6 +557,7 @@ stream {

server {
listen {{ $udpServer.Port }} udp;
{{ if $IsIPV6Enabled }}listen [::]:{{ $udpServer.Port }}{{ end }}
proxy_responses 1;
proxy_pass udp-{{ $udpServer.Backend.Namespace }}-{{ $udpServer.Backend.Name }}-{{ $udpServer.Backend.Port }};
}
Expand Down

0 comments on commit efd6714

Please sign in to comment.