HomeAssistant with NGINX proxy Manager

Hi all,

I have spent the last couple of days messing around with my proxy manager but have been unable to figure out why HA is working against me. I have managed to make other services work with the proxy so i don’t think it’s my proxy config that is messing with me here.

I can’t get HA to log in, well actually i am logged in but i get the “redirect” screen.
The credentials are correct because when i try to connect locally, it just works.

Here is the situation.
Ports have been forwarded. Using fictional port 1234 for example purpose.
So basically i believe i have set up all ports correctly, since i am able to connect to the HA pi.
Since a picture says more than words…

I think i have to configure HA to redirect me to the same 1234 port after it’s trying to redirect me after logging in. But at this point i don’t know anymore and i am not really sure how to configure HA like that.
Can anyone point me in in the right direction?

Image through proxy:

Image via local connection:
Sorry, had to split up the posts since i can only post 1 embedded image because i am a new user.

Proxy config:

So apparently i just had to enable “websockets” for this to work in my nginx proxy config.