add immich

This commit is contained in:
Satria 2026-03-03 11:03:49 +07:00
commit 3ee42ca4f3
2 changed files with 22 additions and 2 deletions

View file

@ -44,10 +44,14 @@ in {
proxyWebsockets = true;
basicAuthFile = if cfg.auth then "/var/lib/nginx/.htpasswd" else null;
extraConfig = ''
proxy_set_header X-Auth-User $remote_user;
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;
proxy_set_header X-Auth-User $remote_user;
client_max_body_size 50000M;
proxy_read_timeout 600s;
proxy_send_timeout 600s;
send_timeout 600s;
'';
};
}) proxy-mappings;