#nginx 500 Internal Server Error

1 messages · Page 1 of 1 (latest)

modern pier
#

Installation method Home Assistant OS
Core 2025.5.3
Supervisor 2025.05.1
Operating System 15.2
Frontend 20250516.0

Goal: access home assistant on standard 443 port with valid lets encrypt certs without reconfiguring the port the gui runs on.

I installed and configured lets encrypt. Its been working for ages so no isues here. I simply removed the reference to the certs and added the forwarded_for and trusted_proxies to configuration.yaml:

http:
  use_x_forwarded_for: true
  trusted_proxies:
    - 172.30.0.0/16

I installed and configured NGINX Home Assistant SSL proxy. Current config shows:

domain: ha.int.domain.bla
hsts: max-age=31536000; includeSubDomains
certfile: fullchain.pem
keyfile: privkey.pem
cloudflare: false
customize:
  active: false
  default: nginx_proxy_default*.conf
  servers: nginx_proxy/*.conf
real_ip_from:
  - 172.30.0.0/16

Change the ports on your host that are exposed by the add-on has been left to 443.

I restarted home assistant. restarted nginx but logs continue to show 500 Internal Server Error:

[13:40:59] INFO: Generating nginx.conf from template in /etc/nginx/nginx.conf.gtpl
[13:40:59] INFO: Running nginx...
500 Internal Server Error

I have no idea how to proceed actually. Any help is appreciated. Thanks!