Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
HTTPS NGINX 502 Bad Gateway - Immich
I
Immich
•
3y ago
•
2 replies
Seion
HTTPS NGINX 502 Bad Gateway
I used the install script to setup Immich and did not change any other settings on the container
.
I have NGINX already running and have the following config setup in NGINX
server
{
if
(
$host
= photos
.domainhidden
.net
)
{
return 301
https://$host$request_uri
;
}
}
server
{
server
_name photos
.domainhidden
.net
;
location
/
{
proxy
_bind
$server
_addr
;
proxy
_pass
https://127.0.0.1:2283
;
proxy
_set
_header Host
$http
_host
;
proxy
_set
_header X
-Forwarded
-For
$proxy
_add
_x
_forwarded
_for
;
proxy
_set
_header X
-Scheme
$scheme
;
}
listen
[
:
:
]
:443 ssl
;
# managed by Certbot
listen 443 ssl
;
# managed by Certbot
ssl
_certificate
/etc
/letsencrypt
/live
/domainhidden
.net
/fullchain
.pem
;
# managed by Certbot
ssl
_certificate
_key
/etc
/letsencrypt
/live
/domainhidden
.net
/privkey
.pem
;
# managed by Certbot
include
/etc
/letsencrypt
/options
-ssl
-nginx
.conf
;
# managed by Certbot
ssl
_dhparam
/etc
/letsencrypt
/ssl
-dhparams
.pem
;
# managed by Certbot
}
photos
.domainhidden
.net redirects me to the
h
t
t
p
s
:
/
/ version but it gives me a 502 bad gateway
Immich
Join
A place to hang out, get support, discuss Immich, get announcements about releases and anything else going on.
36,590
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
502 Bad Gateway
I
Immich / help-desk-support
3y ago
UnRAID 502 Bad Gateway
I
Immich / help-desk-support
3y ago
Bad gateway (error code 502)
I
Immich / help-desk-support
3y ago
502 bad gateway on proxy container
I
Immich / help-desk-support
3y ago