Skip to content

Commit bac4a0d

Browse files
committed
fix: route SDK v1 requests through nginx
1 parent 84a58e7 commit bac4a0d

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

docker/nginx.conf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,18 @@ server {
5151
proxy_connect_timeout 75s;
5252
}
5353

54+
# Proxy SDK API to backend
55+
location /v1/ {
56+
proxy_pass http://backend;
57+
proxy_http_version 1.1;
58+
proxy_set_header Host $host;
59+
proxy_set_header X-Real-IP $remote_addr;
60+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
61+
proxy_set_header X-Forwarded-Proto $scheme;
62+
proxy_read_timeout 300s;
63+
proxy_connect_timeout 75s;
64+
}
65+
5466
# WebSocket proxy to backend
5567
location /ws/ {
5668
proxy_pass http://backend;

0 commit comments

Comments
 (0)