#Problems setting up NGINX for HA
1 messages · Page 1 of 1 (latest)
Safe depends on whether you did all that correctly, and have sensible passwords for all the HA accounts
if you created an account called admin with the password admin ... well, not very safe
no my user is diferent, and password I think is safe..letters, cap letters, numbers..
ssl_certificate: /ssl/fullchain.pem
ssl_key: /ssl/privkey.pem
http:
use_x_forwarded_for: true
trusted_proxies: 172.30.0.0/16```
To format your text as code, enter three backticks on the first line, press Enter for a new line, paste your code, press Enter again for another new line, and lastly three more backticks.
```yaml
example: here
```
Don't forget you can edit your post rather than repeatedly posting the same thing.
You can only have http: once
but If I only use one..the remote access to my HA doesnt work anymore
To check your configuration use the command for your install method:
Well, also... what are you doing?
I have this error in configuration.yaml but aparently work without problems
I use duckDNS and the NGinx
Then remove the ssl_ lines
This: http: ssl_certificate: /ssl/fullchain.pem ssl_key: /ssl/privkey.pem ??
Yes
If I remove that the remote access doesnt work..
Then you didn't port forward to your proxy
Port forward should be to the proxy, which connects to HA
im not at home now..more soon I show how my router are configured in the port forwarding
I think I have the configuration ok..but..
Problems setting up NGINX for HA
Well, clearly you don't, or it'd work 😉
in my NGinx config I have configured the port 8126 in HTTPS(SSL) Port
in the router:
Name of service: HomeAssistant
IP Device: 192.168.0.248 (the ip of the virtual machine)
External port: 443
Internal port: 8126
Protocol: TCP
if I delete one of the lines of http the remote access KO!
Well... check the proxy logs, check the HA log
And... share your current configuration.yaml
And ...
To check your configuration use the command for your install method:
WARNING:homeassistant.util.yaml.loader:YAML file /config/configuration.yaml contains duplicate key "http". Check lines 23 and 28
ERROR:homeassistant.config:Invalid config for 'template' at template.yaml, line 1: 'template' is an invalid option for 'template', check: template```
Well, that first one I told you about already
The second one... you'll have to shae the template.yaml file
Please use a code share site to share code or logs, for example:
- https://dpaste.org/ (select YAML for the language, and consider picking a longer expiry)
- http://pastie.org/ (select YAML for the language)
- https://paste.debian.net/ (you guessed it, select YAML as the language)
Please don't use Pastebin, since it can randomly add spaces to the main view. Please also don't share text as images since it makes it harder for people to help you. Remember that others may have colour blindness, impaired vision, etc.
dont understand what can I do in template to work properly?
Sadly we're not mind readers (any more anyway, not after the last time we tried). Please share the YAML and any errors so we can see what you've done.