use variable for fastcgi_pass to force resolver usage

This commit is contained in:
Andrew Dolgov 2023-11-07 09:56:23 +03:00
parent 61910acbcd
commit 1fe1132a1a
No known key found for this signature in database
GPG Key ID: 1A56B4FA25D4AF2A
1 changed files with 3 additions and 5 deletions

View File

@ -18,10 +18,6 @@ http {
resolver ${RESOLVER} valid=5s;
upstream app {
server ${APP_UPSTREAM}:9000;
}
server {
listen 80;
listen [::]:80;
@ -53,7 +49,9 @@ http {
fastcgi_index index.php;
include fastcgi.conf;
fastcgi_pass app;
set $backend "${APP_UPSTREAM}:9000";
fastcgi_pass $backend;
}
location / {