Skip to content

Commit 75f3ad7

Browse files
ImTotemclaude
andcommitted
feat(nginx): add /graphql proxy to frontend server block
Route /graphql requests to API backend alongside /v1/ and /s/. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 648031c commit 75f3ad7

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

infra/nginx/bcsd-api.conf.template

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,17 @@ server {
124124
proxy_read_timeout 60s;
125125
}
126126

127+
location /graphql {
128+
proxy_pass http://api_blue;
129+
proxy_http_version 1.1;
130+
proxy_set_header Host $host;
131+
proxy_set_header X-Real-IP $remote_addr;
132+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
133+
proxy_set_header X-Forwarded-Proto $scheme;
134+
proxy_set_header Connection "";
135+
proxy_read_timeout 60s;
136+
}
137+
127138
location / {
128139
proxy_pass http://frontend;
129140
proxy_http_version 1.1;

0 commit comments

Comments
 (0)