diff options
author | Andrew Dolgov <[email protected]> | 2023-11-07 09:48:06 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2023-11-07 09:48:06 +0300 |
commit | f11b3f64003f9b6db7c0d50c4d1c1a7cd1466a65 (patch) | |
tree | 98489d24400337440e2faaa42755b22073b7f836 | |
parent | 33119ec914a0e8404b0863fdd217c8a089ccd903 (diff) |
use variable for fastcgi_pass to force resolver usage
-rw-r--r-- | .docker/web-nginx/nginx.conf | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/.docker/web-nginx/nginx.conf b/.docker/web-nginx/nginx.conf index 7dbdc3e..8f505e6 100644 --- a/.docker/web-nginx/nginx.conf +++ b/.docker/web-nginx/nginx.conf @@ -19,10 +19,6 @@ http { resolver ${RESOLVER} valid=5s; - upstream app { - server ${APP_UPSTREAM}:9000; - } - server { listen 80; listen [::]:80; @@ -51,7 +47,9 @@ http { fastcgi_index index.php; include fastcgi.conf; - fastcgi_pass app; + set $backend "${APP_UPSTREAM}:9000"; + + fastcgi_pass $backend; } location / { |