High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix(proxy): turn off nginx_proxy_buffer (#2246)
TruongSinh Tran-Nguyen4952b3a2d612
diff --git a/nginx/templates/default.conf.template b/nginx/templates/default.conf.templateindex 7946d8697d..db5d658603 100644--- a/nginx/templates/default.conf.template+++ b/nginx/templates/default.conf.template@@ -43,20 +43,22 @@ server {image/svg+xmltext/css;- location /api {- proxy_buffering off;- proxy_buffer_size 16k;- proxy_busy_buffers_size 24k;- proxy_buffers 64 4k;- proxy_force_ranges on;+ proxy_buffering off;+ proxy_request_buffering off;+ proxy_buffer_size 16k;+ proxy_busy_buffers_size 24k;+ proxy_buffers 64 4k;+ proxy_force_ranges on;++ proxy_http_version 1.1;+ proxy_set_header Host $http_host;+ proxy_set_header X-Forwarded-Host $http_host;+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;+ proxy_set_header X-Forwarded-Proto $forwarded_protocol;+ proxy_set_header Upgrade $http_upgrade;+ proxy_set_header Connection $connection_upgrade;- proxy_http_version 1.1;- proxy_set_header Host $http_host;- proxy_set_header X-Forwarded-Host $http_host;- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;- proxy_set_header X-Forwarded-Proto $forwarded_protocol;- proxy_set_header Upgrade $http_upgrade;- proxy_set_header Connection $connection_upgrade;+ location /api {rewrite /api/(.*) /$1 break;@@ -64,19 +66,6 @@ server {}location / {- proxy_buffering off;- proxy_buffer_size 16k;- proxy_busy_buffers_size 24k;- proxy_buffers 64 4k;- proxy_force_ranges on;-- proxy_http_version 1.1;- proxy_set_header Host $http_host;- proxy_set_header X-Forwarded-Host $http_host;- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;- proxy_set_header X-Forwarded-Proto $forwarded_protocol;- proxy_set_header Upgrade $http_upgrade;- proxy_set_header Connection $connection_upgrade;proxy_pass ${IMMICH_WEB_SCHEME}web;}