This commit is contained in:
gogongxt committed 2026-11-30 14:14:41 +08:00
1 parent 544767a5c3
commit 4d2cb4f1bc
1 file changed
+6
+6
View File
@@ -52,6 +52,12 @@ server {
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;
# The CSP carries a hash for every distinct inline style/script used in
# note bodies. On a large site the header passes nginx's 4k default and
# the proxy answers 502 "upstream sent too big header" without this.
proxy_buffer_size 32k;
proxy_buffers 8 32k;
proxy_busy_buffers_size 64k;
# Range seeks in <video> should stream, not buffer through a temp file.
proxy_buffering off;
proxy_read_timeout 60s;