fix immich

This commit is contained in:
2026-04-14 15:46:48 -04:00
parent 1251438085
commit 653321818d
2 changed files with 15 additions and 13 deletions
+7 -11
View File
@@ -1,10 +1,3 @@
# Template for new app confs.
# 1. Copy this file: cp _template.conf.example <domain>.conf
# 2. Replace photos.thekims.family with the actual domain
# 3. Replace UPSTREAM_NAME and CONTAINER:PORT with the app's container and port
# 4. Run issue-cert.sh <domain> if cert doesn't exist yet
# 5. Copy to argento, nginx -t && nginx -s reload
server {
listen 80;
listen [::]:80;
@@ -30,17 +23,20 @@ server {
include /etc/nginx/conf.d/security-headers.inc;
# Use a variable so nginx starts even if the upstream is down
set $upstream_UPSTREAM_NAME http://localhost:2283;
# Immich allows large originals and video uploads
client_max_body_size 50G;
proxy_request_buffering off;
set $upstream_immich http://immich_server:2283;
location / {
proxy_pass $upstream_UPSTREAM_NAME;
proxy_pass $upstream_immich;
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;
# Uncomment if the app uses WebSockets
# Immich uses WebSockets for live upload progress and notifications
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";