Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion helm/ggbridge/files/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,10 @@ stream {
{{- end }}
}

{{- if .Values.proxy.config.resolver.enabled }}
resolver {{ .Values.proxy.resolver }} valid=30s;
resolver_timeout 5s;
resolver_timeout {{ .Values.proxy.config.resolver.timeout }};
{{- end }}

### web/tls stream server
# Forwards TLS requests originating from web or tls tunnels.
Expand Down
4 changes: 3 additions & 1 deletion helm/ggbridge/files/proxy/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ stream {

access_log /dev/stdout main;

{{- if $context.Values.proxy.config.resolver.enabled }}
resolver {{ printf "kube-dns.kube-system.svc.%s" $clusterDomain }} valid=30s;
resolver_timeout 5s;
resolver_timeout {{ $context.Values.proxy.config.resolver.timeout }};
{{- end }}

{{- range $tunnel, $config := $ports }}
upstream {{ $tunnel }} {
Expand Down
7 changes: 7 additions & 0 deletions helm/ggbridge/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,13 @@ proxy:

# -- Nginx configuration
config:
# -- Nginx resolver configuration
resolver:
# -- Enable DNS resolver in nginx configuration
enabled: true
# -- Resolver timeout value
timeout: 5s

# -- Nginx server section configuration
server:
# -- Nginx global proxy timeout
Expand Down