web: auto-detect nginx resolver

Take it from /etc/resolv.conf in case it wasn't provided via the env
variable.

Fixes: https://github.com/jitsi/docker-jitsi-meet/issues/1430
This commit is contained in:
Saúl Ibarra Corretgé
2022-11-03 14:03:13 +01:00
parent 9fbb5bd815
commit 53b2654556
2 changed files with 10 additions and 1 deletions

View File

@@ -26,7 +26,9 @@ http {
client_max_body_size 0;
resolver {{ .Env.NGINX_RESOLVER | default "127.0.0.11" }};
{{ if .Env.NGINX_RESOLVER }}
resolver {{ .Env.NGINX_RESOLVER }};
{{ end -}}
include /etc/nginx/mime.types;
types {