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
+8 -2
View File
@@ -22,8 +22,9 @@ services:
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
env_file: env_file:
- .env - .env
ports: networks:
- '2283:2283' - default
- shared
depends_on: depends_on:
- redis - redis
- database - database
@@ -74,3 +75,8 @@ services:
volumes: volumes:
model-cache: model-cache:
networks:
default:
shared:
external: true
+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 { server {
listen 80; listen 80;
listen [::]:80; listen [::]:80;
@@ -30,17 +23,20 @@ server {
include /etc/nginx/conf.d/security-headers.inc; include /etc/nginx/conf.d/security-headers.inc;
# Use a variable so nginx starts even if the upstream is down # Immich allows large originals and video uploads
set $upstream_UPSTREAM_NAME http://localhost:2283; client_max_body_size 50G;
proxy_request_buffering off;
set $upstream_immich http://immich_server:2283;
location / { location / {
proxy_pass $upstream_UPSTREAM_NAME; proxy_pass $upstream_immich;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme; 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_http_version 1.1;
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade"; proxy_set_header Connection "upgrade";