From 6628b10f496f15bf243a62772a555632d2aeb639 Mon Sep 17 00:00:00 2001 From: Naramsim Date: Thu, 23 Jan 2025 00:10:48 +0100 Subject: [PATCH] fix: allow nginx to start without graphiql --- Resources/nginx/nginx.conf | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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 {