Port forwarding from router to pi on 443
Forward in nginx 443 to 8123
Thanks for the response!
yeap that is what I have but on the external duckdns url I get error 400 (Bad request ):
400: Bad Request
and on the HA logs I see:
Received X-Forwarded-For header from an untrusted proxy 172.30.33.2
But I already listed that IP under trusted_proxies
Did you restart HA after adding
172.30.33.2
to the trusted proxies ?
Yes I did, but still same log errors
EDIT:
I found the issue!! This is for NGINX Home Assistant SSL proxy add-on
This is what you need.
-
default add-on configurations. just add your duckdns url
-
Add the http settings they have on their github, just like it is posted.
http:
use_x_forwarded_for: true
trusted_proxies:
- 172.30.33.0/24
- Configure port forwarding 443 port of your pi, to 443 external port
* And the most important step, not mentioned anywhere… you need to install the MariaDB add-on and make sure it runs fine, before starting MariaDB, make sure you change de null password value. Please ignore this bullet. Thanks. - Petro
Thanks all. that will work!
Please don’t spread imprecise information.
Mariadb is maybe needed for your specific setup, but it has nothing to do with “standard” nginx setup or remote access
Please edit your post and remove this. This is not true. EDIT: Took care of it myself.
For the NGINX Home Assistant SSL proxy add-on it is needed. It was not working or me until I installed mariaDB. As soon as I removed it, it stopped working.
I have no special set up or running any other services but home assistant
No. It’s needed for you for whatever reason, but isn’t for anybody else.
Some random reader searching the forum might see your post and install mariadb for no reason.
I highly suggest to not enter an edit war with a moderator (@petro )
This is not true. Maria db has nothing to do with the proxy. The only impact it could have is changing your nginx container ip from 172.30.33.n to 172.3.33.n+1