Files
reelbox/server/nginx-api-locations.conf

43 lines
1.4 KiB
Plaintext

# Include inside the ReelBox HTTPS server on 443 (legacy 8443 remains served).
# Preserve website/download routes and unrelated services; inspect each host.
location /api/ {
access_log off;
# Public metadata only; low compression level trades little CPU for fewer
# transferred bytes. Nginx handles negotiation, HEAD and chunked framing.
gzip on;
gzip_types application/json;
gzip_min_length 1024;
gzip_comp_level 2;
gzip_vary on;
gzip_proxied no-store;
limit_except GET { deny all; }
proxy_pass http://127.0.0.1:18765;
proxy_http_version 1.0;
proxy_set_header Host localhost;
proxy_set_header Connection close;
proxy_connect_timeout 3s;
proxy_read_timeout 30s;
proxy_send_timeout 10s;
proxy_max_temp_file_size 0;
}
location /api-user/ {
access_log off;
# Public metadata only; low compression level trades little CPU for fewer
# transferred bytes. Nginx handles negotiation, HEAD and chunked framing.
gzip on;
gzip_types application/json;
gzip_min_length 1024;
gzip_comp_level 2;
gzip_vary on;
gzip_proxied no-store;
limit_except GET { deny all; }
proxy_pass http://127.0.0.1:18765;
proxy_http_version 1.0;
proxy_set_header Host localhost;
proxy_set_header Connection close;
proxy_connect_timeout 3s;
proxy_read_timeout 30s;
proxy_send_timeout 10s;
proxy_max_temp_file_size 0;
}