更新 deployment/nginx.conf
This commit is contained in:
parent
6e866b83e4
commit
bf02395e48
@ -25,7 +25,19 @@ http {
|
|||||||
gzip on;
|
gzip on;
|
||||||
|
|
||||||
server {
|
server {
|
||||||
client_max_body_size 5m;
|
client_max_body_size 1g;
|
||||||
|
|
||||||
|
location /v2 {
|
||||||
|
proxy_pass http://127.0.0.1:8383;
|
||||||
|
|
||||||
|
# Add headers to support SSE
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header Connection '';
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
}
|
||||||
|
|
||||||
location /_api {
|
location /_api {
|
||||||
proxy_pass http://127.0.0.1:8383;
|
proxy_pass http://127.0.0.1:8383;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user