Skip to content

Commit 6628b10

Browse files
committed
fix: allow nginx to start without graphiql
1 parent 16a6869 commit 6628b10

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

Resources/nginx/nginx.conf

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,6 @@ http {
4747
server graphql-engine:8080 fail_timeout=0;
4848
}
4949

50-
upstream graphiql_upstream {
51-
server graphiql:80 fail_timeout=0;
52-
}
53-
5450
geo $limit {
5551
default 1;
5652
10.0.0.0/8 0;
@@ -109,7 +105,8 @@ http {
109105
proxy_set_header X-Real-IP $remote_addr;
110106
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
111107
proxy_set_header Host $http_host;
112-
proxy_pass http://graphiql_upstream/;
108+
set $upstream_graphiql graphiql_upstream;
109+
proxy_pass http://$upstream_graphiql/;
113110
}
114111

115112
location /graphql/v1beta {

0 commit comments

Comments
 (0)