Files
vibemake-pcb-studio/integration/nginx.example.conf
T

23 lines
706 B
Plaintext

# Inside an existing HTTPS server block; preserve /pcb/ paths.
location = /pcb { return 302 /pcb/; }
location ^~ /pcb/library-api/ {
client_max_body_size 100m;
proxy_request_buffering off;
proxy_pass http://127.0.0.1:5180;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header Origin $http_origin;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_buffering off;
proxy_read_timeout 3600s;
}
location /pcb/ {
proxy_pass http://127.0.0.1:5180;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header Origin $http_origin;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_buffering off;
proxy_read_timeout 3600s;
}