Skip to content

Commit

Permalink
fix: allow nginx to start without graphiql
Browse files Browse the repository at this point in the history
  • Loading branch information
Naramsim committed Jan 22, 2025
1 parent 16a6869 commit 6628b10
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Resources/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 6628b10

Please sign in to comment.