Hi,
im sorry but after wasting days, watching youtube tutorials and googling everything about duckdns nginx and port forwarding and even deleting my HA iso on my unraid and starting from scratch, i am destroyed and seek help.
currently i can access my HA via local http ip address 192.168.178.61:8123
i set up an duckdns account and created the subdomain(s, yes 3 as i liked to) and let the duckdns ha addon do its magic by creating a letsencrypt ssl cert.
duckdns config (test is my masked name for this documentation here):
domains:
- testhaDOTduckdnsDOTorg
- testncDOTduckdnsDOTorg
- testDOTduckdnsDOTorg
token: XXXXXXXX
aliases: []
lets_encrypt:
accept_terms: true
algo: secp384r1
certfile: fullchain.pem
keyfile: privkey.pem
seconds: 300
i installed nginx and configed it hard like in the tutorials stated as well:
nginx config:
domain: testhaDOTduckdnsDOTorg
hsts: max-age=31536000; includeSubDomains
certfile: fullchain.pem
keyfile: privkey.pem
cloudflare: false
customize:
active: true
default: nginx_proxy_default*.conf
servers: nginx_proxy/*.conf
and i set the outside port in nginx to 8124. why not 8123 u ask? nginx told me that there is already something else using 8123, so i was not able to choose this. i dont know why… but it shouldnt matter which port i use for this.
i added the reverse port forward in my fritzbox which is the router of my IP.
for my HA ip: 192.168.178.61
and the port 8124
on my unraid i have an active piHole acting as my DNS server, where i added the DNS record of the duckdns domain:
testha.duckdns.org -> 192DOT168DOT178DOT61
and i did set piHole ip as DNS server IP in fritzbox (router).
my ha config yaml is also enhanced by me with the http block (forgot it in itial block to point out):
http:
use_x_forwarded_for: true
login_attempts_threshold: 5
trusted_proxies:
- 172.30.33.0/24
#ssl_certificate: /ssl/fullchain.pem
#ssl_key: /ssl/privkey.pem
i commented the ssl lines out as nginx configures and uses those pems by itself in its own config.
i restarted HA multiple times, i restarted nginx and ducksdns already, i even restarted my unraid server and of course i also did restart my pc to get rid of possible temporary DNS information, which may be wrong at any time between config changes (mostly in the end).
behavoir:
- i am able to access HA locally with http + ip + port (http192DOT168DOT178DOT61:8123). Thats what i would expect when using nginx anyway.
- i am not able to access HA from outside with https + duckdns domain + port (httpstesthaDOTduckdnsDOTorg:8124)
i think at some point when testing from outside, that i got the SSL is too long SSL error. Then i tried to use dnsmasq to check if the dns record in piHole didnt work (setting fritzbox DNS server to HA ip with installed dnsmasq, configured it to upstream to piHole and created host (testha .duckdns.org) and ip (192DOT168DOT178DOT61). But that also didnt work, so dnsmasq is currently stopped and i changed fritzbox DNS ip back to piHole. now when i try to access httpstesthaDOTduckdnsDOTorg:8124 it just gives me an error, that it is not able to connect (so not even the SSL too long error any more).
nothing helps, im helpless, maybe someone can help me!
thanks in advance!