diff --git a/Resources/nginx/nginx.conf b/Resources/nginx/nginx.conf index 965547f62..67563cd84 100644 --- a/Resources/nginx/nginx.conf +++ b/Resources/nginx/nginx.conf @@ -47,10 +47,6 @@ http { server graphql-engine:8080 fail_timeout=0; } - upstream graphiql_upstream { - server graphiql:80 fail_timeout=0; - } - geo $limit { default 1; 10.0.0.0/8 0; @@ -109,7 +105,8 @@ http { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; - proxy_pass http://graphiql_upstream/; + set $upstream_graphiql graphiql_upstream; + proxy_pass http://$upstream_graphiql/; } location /graphql/v1beta {