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