Ok I got a little further. I added this to my default.conf:
server {
listen 443 ssl default_server;
root /config/www;
index index.html index.htm index.php;
# server_name _;
server_name wwpi.duckdns.org;
# all ssl related config moved to ssl.conf
include /config/nginx/ssl.conf;
client_max_body_size 0;
location / {
proxy_pass http://192.168.30.6:18122;
}
Now I get the HA logo page to sign in but after entering my password is just spins and eventually says “Unable to connect”.
Crap… I’m really happy this works but now I cannot VPN into my network (via pfSense)… related to the 443 port being forwarded directly to the Docker machine I am guessing.
Has anyone had this issue?
Edit** - I figured it out. when creating the port forwards for NGINX I made them TCP/UDP. Should have only been TCP and then UDP still works for my VPN connection.
Thanks for the update and congrats on getting it working! I’ve followed along and still unable to connect. No errors in NGNIX, Lets Encrypt logs, or home assistant but when trying to connect via duckDNS, receiving a
ERR_CONNECTION_REFUSED
Would you mind posting the default fault if there’s anything else relevant that I might be missing? I think this is the same default file found ~/letsencrypt/nginx/site-confs… right?
Finally, I’m using Google WiFi for port forwarding. So far, I’ve just forward 80:80 and 443:443 on my host machine. Is there anything additional you did in pfSense?
installed the HA docker container and created a config directory under /home/finity/ha-config
it populated the config directory with the basic configuration files.
Now I need to move my existing config files to that directory and be able to edit them.
I saved all of my config files to my windows machine and i want to use WinSCP to move files around. I can move files that don’t already exist to that directory but I can’t overwrite existing files.
I then remembered I needed to set the WinSCP environment to “sudo su -”. tried that but now WinSCP won’t log me in. It says the shell is incompatible and recommended BASH. I tried that and it allows me to log in but when I try to edit a file that was auto created (configuration.yaml for example) it says I don’t have the permissions necessary.
How can I fix this?
I’ve tried googling for the answer and nothing seems to help.
And I’m sure this will be the first of many questions…
Why not use Syncthing? Why would you want to manually move files around for no reason?
If you are logging into the WinSCP session as user ‘finity’, there is absolutely no reason at all to have to sudo. You are that user and anything in /home/finity belongs to you. If you have to sudo anything for that, you have done something wrong.
I need to move my existing yaml files from my windows machine to the new docker container.
I’m logging in as finity.
I installed HA by following the directions from the install page. That created default config files in the correct directory that i specified. all the default files in that directory are owned by “root”. the files that I was able to put there (that were not created by default) are owned by “finity”.
as far as syncthing, I’ll definitely look into it but for now I just need to get up and running. And the best way for me to do that right now is to do it the way I know how using WinSCP & Notepad++.
One other quick (hopefully…) question is about Portainer.
It’s asking for the IP and port of the endpoint for Docker. Is that just the IP address of the host on my local network? and what would be the port?