Reverse proxy for home automation

Hi!

I just installed home assistant on a raspberry pi and want to set it behind reverse proxy. So I installed nginx on my fedora server (running in a proxmox vm) and this is the config file:

server {
    listen 80;
    server_name dom.jeansibelius.net;

    location / {
        proxy_pass http://something.something.something.100:8123/;
    }
}

I have set up port forwarding on my router (80 => nginx_server:80, 443 => nginx_server:443).
Also I have set up subdomain (dom.jeansibelius.net) to point to my public ip address.

So when I go to http://dom.jeansibelius.net/ I should see my home assistant, but I do not…
I only see “Secure site not available” and after accepting I see “connection was reset”.

Nothing in /var/log/nginx/access.log and in /var/log/nginx/error.log.

Can you guys help me?

Kazimierz Krauze

You will need to configure your DNS to point there as well. Not sure what you are using for DNS. Is it safe to assume you are using ISP defaults?

*.jeansibelius.net points to my public IP, I’m using Cloudflare.