From 40cd78d0b8d0ab63926b425c726b12e1046ae537 Mon Sep 17 00:00:00 2001 From: Manuel de Brito Fontes Date: Fri, 26 May 2017 12:19:54 -0400 Subject: [PATCH] Add support for IPv6 in TCP and UDP stream section --- controllers/nginx/rootfs/etc/nginx/template/nginx.tmpl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/controllers/nginx/rootfs/etc/nginx/template/nginx.tmpl b/controllers/nginx/rootfs/etc/nginx/template/nginx.tmpl index c49ab8d934..ed68b65d2c 100644 --- a/controllers/nginx/rootfs/etc/nginx/template/nginx.tmpl +++ b/controllers/nginx/rootfs/etc/nginx/template/nginx.tmpl @@ -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 }} @@ -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 }}; }