use variable for fastcgi_pass to force resolver usage
This commit is contained in:
parent
61910acbcd
commit
1fe1132a1a
|
@ -18,10 +18,6 @@ http {
|
||||||
|
|
||||||
resolver ${RESOLVER} valid=5s;
|
resolver ${RESOLVER} valid=5s;
|
||||||
|
|
||||||
upstream app {
|
|
||||||
server ${APP_UPSTREAM}:9000;
|
|
||||||
}
|
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
|
@ -53,7 +49,9 @@ http {
|
||||||
fastcgi_index index.php;
|
fastcgi_index index.php;
|
||||||
include fastcgi.conf;
|
include fastcgi.conf;
|
||||||
|
|
||||||
fastcgi_pass app;
|
set $backend "${APP_UPSTREAM}:9000";
|
||||||
|
|
||||||
|
fastcgi_pass $backend;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
|
|
Loading…
Reference in New Issue