Always use resolver variable in nginx conf.d files

This commit is contained in:
Stefan Warnat
2022-10-30 00:55:36 +02:00
parent fe1f49d5e7
commit ab398276af
16 changed files with 37 additions and 37 deletions

View File

@ -24,7 +24,7 @@
location / {
{% if matrix_nginx_proxy_enabled %}
{# Use the embedded DNS resolver in Docker containers to discover the service #}
resolver 127.0.0.11 valid=5s;
resolver {{ matrix_nginx_proxy_http_level_resolver }} valid=5s;
set $backend "matrix-client-cinny:8080";
proxy_pass http://$backend;
{% else %}
@ -51,7 +51,7 @@ server {
location /.well-known/acme-challenge {
{% if matrix_nginx_proxy_enabled %}
{# Use the embedded DNS resolver in Docker containers to discover the service #}
resolver 127.0.0.11 valid=5s;
resolver {{ matrix_nginx_proxy_http_level_resolver }} valid=5s;
set $backend "matrix-certbot:8080";
proxy_pass http://$backend;
{% else %}