© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
ImmichI
Immich•14mo ago•
36 replies
Gomo

[SOLVED] 502 Bad Gateway with latest Immich version

After upgrading my Immich to the latest version I am getting "502 Bad Gateway" and cannot access immich / login, etc. I am using Nginx Proxy Manager with a publicly exposed domain.

With previous version (v1.122.3) everything worked without issues.

This is my .ENV file
UPLOAD_LOCATION=/mnt/Immich
DB_DATA_LOCATION=./postgres
IMMICH_VERSION=release
DB_PASSWORD=XXXXXXX
IMMICH_TRUSTED_PROXIES=192.X.X.X
DB_USERNAME=XXXX
DB_DATABASE_NAME=XXXX
UPLOAD_LOCATION=/mnt/Immich
DB_DATA_LOCATION=./postgres
IMMICH_VERSION=release
DB_PASSWORD=XXXXXXX
IMMICH_TRUSTED_PROXIES=192.X.X.X
DB_USERNAME=XXXX
DB_DATABASE_NAME=XXXX

And on the Nginx Proxy Manager I have
- websockets support enabled
- block common exploits enabled
- force SSL enabled
- HTTP/2 Support enabled
- HSTS Enabled
- And following custom config added:
client_max_body_size 50000M;
proxy_request_buffering off;
- websockets support enabled
- block common exploits enabled
- force SSL enabled
- HTTP/2 Support enabled
- HSTS Enabled
- And following custom config added:
client_max_body_size 50000M;
proxy_request_buffering off;


I thought I could fix the issue by adding "IMMICH_TRUSTED_PROXIES=192.X.X.X" in the .ENV file but that did not change anything.


Your help would be appreciated!
ImmichJoin
A place to hang out, get support, discuss Immich, get announcements about releases and anything else going on.
36,590Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

502 Bad Gateway
ImmichIImmich / help-desk-support
3y ago
UnRAID 502 Bad Gateway
ImmichIImmich / help-desk-support
3y ago
HTTPS NGINX 502 Bad Gateway
ImmichIImmich / help-desk-support
3y ago
Bad gateway (error code 502)
ImmichIImmich / help-desk-support
3y ago