You can ssh into the addon from Portainer, but you might break things.
Have you tried uninstalling and reinstalling NPM?
You can ssh into the addon from Portainer, but you might break things.
Have you tried uninstalling and reinstalling NPM?
My ideal goal was to utilise the auth system of Home Assistant with the power of a reverse proxy to let me access my files via HASS iFrames.
Thanks to you, iāve got my iFrames fully functional within HASS (and working a treat), i know what i need in my .htaccess:
order deny,allow
deny from all
allow from 192.168.86.0/24
But i donāt know how to do this on a location by location example (i still want x.duckdns.org to point to my home assistant instance externally which this blocks).
How do i apply htaccess rules on a location by location basis?
Sorry, I donāt have a full understanding of the .htaccess and might lead you to an inappropriate solution
You can, however, point HA iframes to the external addresses of the services both on lan and wan.(for example https://x.duckdns.org/sonarr/ ; https://x.duckdns.org/radarr/ ; https://x.duckdns.org/transmission/werb/ from either lan or wan would show the NGINX authentication screen but this would be a minor annoyance since the browser can save the login details and it would only show once per session).
Iām not a big fan of iframes since the real estate in HA is quite limited and I want the links to open in a different tab.
I tried setting up a bookmarks page in AppDaemon (would be perfect but it is not opening links in new tab), Muximux, then Organizr and I ended up setting a home page with Heimdall and pointing to both internet sites (email, Youtube, Netflix, Reddit, news sites, etc) and internal lan resources. Some of the internal sites (Transmission, Tautulli, the rr suite) also have api integration and you can see, at a glance, a lot of information without accessing them.
Thanks Petrica, and appreciate you keeping me safe!
I might run with your path and re-add auth to my ngingx to be safe. Iām also using heimdall but was disapointed it only supports subdomains (e.g. heimdall.duckdns.org/) and not a sub-folder (e.g. x.duckdns.org/heimdall (unless i misunderstood when i was reading the git for my container: https://github.com/linuxserver/Heimdall)
However, since youāre using NPM for reverse proxying and/or authentication, I donāt think it is such a big problem (anyway, neither HA, as a starting page for iframes can be reverse proxyed as a subfolder). In order to use Heimdall as a subdomain (https://heimdall.x.duckdns.org) add APP_URL=https://heimdall.x.duckdns.org
to /www/.env
config file (location might depend on your installation type).
Then, Heimdall can be used to point to any address for which reverse proxying is used (be it subdomain or subfolder) and it would work both from lan and from wan.
OK, thanks.
I never used Portainer before. Iāll check it out.
Wonāt uninstalling and reinstalling delete all my proxy hosts?
I think so (my understanding was that none of the proxy hosts works, anyway).
No, thatās true. I just hoped I could save my configuration somehow.
Iāll try portainer and if that doesnt work Iāll reinstall.
I tried out Portainer and renamed the file 34.conf to 34.old. NPM is now starting again.
Thank you for your help!
Youāre welcome!
so I have NPM running fine, but just wondering how can I set it up to run side by side with emulated hue (amazon echo) on port 80.
the issue here is when the port 80 is occupied (by echo), the cert renewal via NPM keeps failing.
NPM has open port of 443 only
Is there a trick to make this work?
im suddenly getting the error:
[7/6/2020] [9:32:49 PM] [SSL ] āŗ ā¹ info Renewing Let'sEncrypt certificates for Cert #69: ysf.rei.moe [7/6/2020] [9:32:50 PM] [Express ] āŗ ā warning Command failed: /usr/bin/certbot renew --non-interactive --config "/etc/letsencrypt.ini" --cert-name "npm-69" --preferred-challenges "dns,http" --disable-hook-validation Another instance of Certbot is already running.
All the timeā¦ I have tried connecting into the container and running:
find / -type f -name ".certbot.lock"
which did indeed find some lock files, and so I tried removing them with:
find / -type f -name ".certbot.lock" -exec rm {} \;
I am at a lott on what else to try I am unable to renew or request any new certs
Edit: Nevermind! Running those two above commands a second time and giving it a few minutes and it works !
Would be great with an update on this addon, the access list is not working and is fixed in the latest version of the container.
Looking for some helpā¦(let me preface this by stating my Ubuntu proficiency/understanding is shaky, hence the post)
I switched from the official NGINX add-on to this add-on a few months ago. Ever since HA will not restart after a reboot. I would go into Portainer and try to START NGINX Proxy Manager and I get a āport 80 already in use errorā. From some research I figured out how to find out what was running on port 80 by running:
sudo netstat -tulpn | grep :80
and in part get back:
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1460/nginx: master
Then, in this case, I kill the PID 1460, open portainer, the NGINX proxy manager container status will be āCreatedā, I open the process link and click START. HA will now start.
So, after doing this for a couple of months itās getting old. Hoping someone can tell me how to remedy this problem.
Thanks in advance!!
@bg1000
Bob, I greatly appreciate your article. Would you please elaborate on setting up DNSMasq? I am trying to recreate your ātasmobackup.homeā proxy host example and it is not working for me. I set the DNSMasq machineās LAN IP as the #1 DNS server on my router.
DNSMasq includes lines:
forwards:
- domain: ui.home
server: 192.168.0.100
I included a forward of ui.home with a server with IP of the NGINX Proxy Manager LAN IP. And I set up the NGINX Proxy Host precisely how your photo shows it. It simply is not working though.
I tried doing a nslookup and the server default is openDNS ipv6 instead of DNSMasq. I tried nslookup specifying the IP of DNSMasq as the server but that just timed out.
Any help is greatly appreciated!
I run DNSMasq on my router so once I enable it DNS traffic gets automatically routed there without any extra setup as long as I have the adapter set to use DHCP. Iām not sure what your setup is like. In terms of basic troubleshooting I might start with:
Hope this helps.
Thanks this is a useful start. The ethernet adapter was on manual for some reason. I changed it to DHCP. But the problem seems to be in the DNSMasq setup. I tried to dig (didnāt have Linux but installed ubuntu within my win 10 machine). It timed out.
Is there a way to query the DNSMasq DNS server to show me all of its registered IP/Name combinations?
I have Nextcloud running on another RPi server. Everything works except when I go to the address, I get the log in screen but when you press the log in button nothing happens. I can wait for a minute and press refresh and the proper screen comes up. For some reason itās not moving past the log in screen. Iām pretty sure itās something to do with the way this Proxy Manager handles the log in because if I go to the server through my internal network everything works correctly.
I have tried all the extra setting and Custom Locations people have talked about in this topic and none of them seem to help. Any suggestions?
I guess I am having trouble visualizing what is happening behind the curtains.
DNSMasq should be configured to redirect ui.home to the ip address of the proxy server not the address where the actual service runs (unless they happen to be the same).
If you type āping ui,homeā the reply should come from the ip address where nginx is running. If it doesnāt you need to fix that as a first step. DNSMasq needs to be up and running, configured, and the network adapter needs to be configured to use it as a DNS server.
Iām happy to try to help with this but I donāt really understand your environment. It would help if you explained what host OS your using, what youāre doing with VMās, how are you running Home Assistant, etc.
Iām not sure what is running at 192.168.0.100 on your network.
Letās just say (as an example) your proxy server is running at 192.168.1.2 and the service you are interested in is listening on port 8080 at 192.168.1.3
When you type āhttp://ui.homeā in your browser this gets translated to http://192.168.1.2:80. The ip address comes from DNSMasq. Port 80 is the default http port and will get used unless you specify a different one in the browser. Nginx is configured to listen on port 80. It sees the request for ui.home and redirects it to 192.168.1.3:8080.
Does that help?