I
Immich2y ago
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 https:// version but it gives me a 502 bad gateway
2 Replies
bo0tzz
bo0tzz2y ago
Are all the containers up? What do their logs say?
Seion
SeionOP2y ago
stupid thing.... I spent hours last night trying to get this to work and I go to the address to trigger the logs and it works...

Did you find this page helpful?