vw-kombi Posted August 6, 2022 Share Posted August 6, 2022 I was hoping for the geoIP database plugin in nginx : https://www.nginx.com/products/nginx/modules/geoip2/ Quote Link to comment
mgutt Posted August 7, 2022 Author Share Posted August 7, 2022 7 hours ago, vw-kombi said: I was hoping We were all hoping: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/46 Maybe they will be released with V3: https://github.com/NginxProxyManager/nginx-proxy-manager/discussions/1202?sort=new Quote Link to comment
sdballer Posted August 9, 2022 Share Posted August 9, 2022 On 8/5/2022 at 3:56 PM, mgutt said: The path /data/logs has wrong permissions. If they are located in appdata: Did you change them? Fix those by using chmod. You need to change them to 755 (they seem to have 777). Just the logs folder or the entire docker is ok at 755? Quote Link to comment
mgutt Posted August 9, 2022 Author Share Posted August 9, 2022 4 hours ago, sdballer said: the entire docker This is never a good idea. Quote Link to comment
dv310p3r Posted August 9, 2022 Share Posted August 9, 2022 On 7/19/2022 at 4:51 AM, mgutt said: Good idea. In Cloudflare it's possible to force a valid SSL certificate between Cloudflare and NPM. Maybe this setting is active. @dv310p3r Try to add example.com to your local hosts file and set your local server IP. Then test through "ping" if the IP is used. Now open the domain again through your browser. By that you are bypassing cloudflare and connecting NPM directly. Ok. So, it seems to be good now. I think it was a cloudflare thing. I had to turn on full end to end encryption in the cloudflare settings and then enable https in the nginxproxymanager, and it's working. So, thanks for the guidance. Quote Link to comment
Evilernie Posted August 10, 2022 Share Posted August 10, 2022 (edited) since yesterday a got problems with the internal routing and I don`t find the problem. Yesterday all was running very well, but today I can`t access the sites. I will get the Error since today but only the sites on the Unraid Server. Nothing changed at the Ports or so. Wenn I use my FritzBox, there is no problem and I can go there. Als things go to 192.168.1.3 are not working and I get the 502 Error. When I use the other sites (like 192.168.1.1 oder .10, that are other Server) it runs like befor. Like I said, yesterday was all okay. Today Error 503. Ping is possible and I got the right IP Where can the problem that I can´t come on my Dockers on the Unraid Server Update: I changed from br0 to bridge, changed the router and it worked again. But why not with bridge? Edited August 10, 2022 by Evilernie Quote Link to comment
mgutt Posted August 10, 2022 Author Share Posted August 10, 2022 1 hour ago, Evilernie said: Update: I changed from br0 to bridge, changed the router and it worked again. But why not with bridge? https://forums.unraid.net/topic/99393-häufig-gestellte-fragen/#comment-1027380 Quote Link to comment
Evilernie Posted August 10, 2022 Share Posted August 10, 2022 (edited) 2 hours ago, mgutt said: https://forums.unraid.net/topic/99393-häufig-gestellte-fragen/#comment-1027380 but why was it running with br0 till yesterday? Edited August 10, 2022 by Evilernie Quote Link to comment
Xaero Posted August 11, 2022 Share Posted August 11, 2022 Trying to switch to this docker from the unofficial one after many moons. I'm not changing any of the default options as such it is running on the custom (br0) network and has an ip on my local subnet. I am able to access the WebUI and set up a couple of test domains. Both of these error with 502. Looking at the access log: 2022/08/10 19:41:24 [error] 810#810: *104 octopi.local could not be resolved (3: Host not found), I can't resolve any address in my local network, trying to curl octopi.local results in could not resolve host: octopi.local. Using curl on the IP works fine. Additionally, I receive no route to host when trying to refer to the unraid server, so I can't see/forward to any dockers hosted on that server. Not sure how best to approach this. (For example, I have a service running at 192.168.1.72:8443, I get "no route to host" for 192.168.1.72 - which is my unraid box) Quote Link to comment
mgutt Posted August 11, 2022 Author Share Posted August 11, 2022 5 hours ago, Xaero said: octopi.local This sounds like you want to reach the container by its name? So you created a custom network? Is NPM part of this custom network and the target container as well? As far as I know the br0 network does not contain a DNS server. Only user defined networks have this feature: https://stackoverflow.com/a/35691865/318765 5 hours ago, Xaero said: I can't resolve any address in my local network, trying to curl octopi.local results in could not resolve host: octopi.local I think this is correct. Quote Link to comment
Pharmtech78 Posted August 11, 2022 Share Posted August 11, 2022 Hey everyone, I'm trying to upload videos from my iPhone via photosync using this docker and I'm getting an error 413-request too large. I've searched and attempted to add in some of the custom config given in the advanced tab on npm, but non seem to work. Any help would be appreciated, thanks! Quote Link to comment
mgutt Posted August 11, 2022 Author Share Posted August 11, 2022 2 hours ago, Pharmtech78 said: but non seem to work Maybe the problem is the target container and not NPM? Quote Link to comment
Pharmtech78 Posted August 11, 2022 Share Posted August 11, 2022 19 minutes ago, mgutt said: Maybe the problem is the target container and not NPM? How would i know? What can i check? I'm a noob at this. It's going to photoprism container. Quote Link to comment
mgutt Posted August 11, 2022 Author Share Posted August 11, 2022 Same request, no answer: https://github.com/photoprism/photoprism/issues/2187 NPM shouldn't be the problem because the default setting for file uploads is 2000MB / 2GB: Does the photoprism container have an unraid support thread? Then ask there or ask at the github project of photoprism. Would be nice if you can post the solution here after you find it. Quote Link to comment
Xaero Posted August 11, 2022 Share Posted August 11, 2022 12 hours ago, mgutt said: This sounds like you want to reach the container by its name? So you created a custom network? Is NPM part of this custom network and the target container as well? As far as I know the br0 network does not contain a DNS server. Only user defined networks have this feature: https://stackoverflow.com/a/35691865/318765 I think this is correct. The octopi instance is running on a raspberry pi and is reachable on my network as "octopi.local" I'm wanting to allow remote access to it through nginx proxy manager as well as the other services on my network that aren't all on my server. I ended up switching to HOST networking, moving the unraid WebUI to Port 5000/5001 and then pointing my router to my unraid's hostname. After switching to host network mode hostname resolution works properly, and I have now set it up so that I can access all of my services. I also added an entry for my local unraid hostname and ip address to redirect to the unraid WebUI so I can use those like I always have transparently. Quote Link to comment
mgutt Posted August 11, 2022 Author Share Posted August 11, 2022 28 minutes ago, Xaero said: The octopi instance is running on a raspberry pi Ah ok. 28 minutes ago, Xaero said: I ended up switching to HOST networking, moving the unraid WebUI to Port 5000/5001 and then pointing my router to my unraid's hostname That's my favorite setup as it works flawlessly with IPv6, too. Only out of interest: Did you even try running NPM in br0? I think this should work, too, as it should be able to reach your local DNS information as it is then part of your local network. In bridge mode NPM runs isolated from your network, so yes, in this network mode it shouldn't be able to resolve any domains from your local network. Quote Link to comment
Xaero Posted August 11, 2022 Share Posted August 11, 2022 4 minutes ago, mgutt said: Ah ok. That's my favorite setup as it works flawlessly with IPv6, too. Only out of interest: Did you even try running NPM in br0? I think this should work, too, as it should be able to reach your local DNS information as it is then part of your local network. In bridge mode NPM runs isolated from your network, so yes, in this network mode it shouldn't be able to resolve any domains from your local network. That's how it came set up out of the box - and it was unable to resolve hostnames. Even specifying a dns using the --dns flag in docker it would not resolve hostnames. I believe there is something missing in the br0 config for this to work outside of dns as `curl <DNS IP>` which is on my local subnet results in no route to host - which is odd since the br0 network and my local subnet are the same scope (192.168.1.x). Either way host works and all my services are reachable how I want them to be again. Quote Link to comment
mgutt Posted August 11, 2022 Author Share Posted August 11, 2022 1 hour ago, Xaero said: and it was unable to resolve hostnames I found the reason. A linux client needs a "zeroconf" setup to be able to resolve .local hostnames. This is done by the avahi-daemon which includes mDNS. PROBLEM: This daemon is missing in most of the docker containers including NPM and that is the reason why they can not resolve .local hostnames. More informations: https://wiki.debian.org/Avahi So this .local hostnames are NOT part of your DNS server. Instead a client which supports mDNS, automatically sends a multicast message to 224.0.0.251 through UDP port 5353 to resolve a .local hostname. And as all mDNS clients are listening to this traffic, the target machine answers with its IP (which is then store in a local mDNS cache): https://en.wikipedia.org/wiki/Multicast_DNS#Protocol_overview You could add those .local hostnames manually to your DNS server, but by that you "break" the zeroconf concept because IP changes are not update automatically, instead you need to update DNS entries on your own. I think we both learned something new 😋 Quote Link to comment
Xaero Posted August 11, 2022 Share Posted August 11, 2022 3 hours ago, mgutt said: I found the reason. A linux client needs a "zeroconf" setup to be able to resolve .local hostnames. This is done by the avahi-daemon which includes mDNS. PROBLEM: This daemon is missing in most of the docker containers including NPM and that is the reason why they can not resolve .local hostnames. More informations: https://wiki.debian.org/Avahi So this .local hostnames are NOT part of your DNS server. Instead a client which supports mDNS, automatically sends a multicast message to 224.0.0.251 through UDP port 5353 to resolve a .local hostname. And as all mDNS clients are listening to this traffic, the target machine answers with its IP (which is then store in a local mDNS cache): https://en.wikipedia.org/wiki/Multicast_DNS#Protocol_overview You could add those .local hostnames manually to your DNS server, but by that you "break" the zeroconf concept because IP changes are not update automatically, instead you need to update DNS entries on your own. I think we both learned something new 😋 You would be correct in learning something new. I never even would have guessed that ".local" suffix specifically had different handling via zerconf/avahi/multicast. Neat! Yeah, don't really feel I should be breaking zeroconf by manually adding those entries to DNS. What I've got going for now works. I've next go to tackle taking my ISP's gateway out of the picture because it explicitly does not support certain things (changing the DNS and NAT loopback being the important ones for me.) Quote Link to comment
Fantucie Posted August 25, 2022 Share Posted August 25, 2022 Heya sorry for the disturb, I need my Nginx to connect on database, has so i use the basic variable to set everything. For some reason all are used, except the host. And has so, in the log he keep trying to reach 'root'@'127.17.0.1' If someone has the answer to that problem i dont say no ! Quote Link to comment
mgutt Posted August 25, 2022 Author Share Posted August 25, 2022 2 hours ago, Fantucie said: I need my Nginx to connect on database You should not use this feature. Its deprecated. It will be removed in the next version of NPM. Maybe it already is?! Did you add all five variables? <Environment> <Variable> <Value></Value> <Name>DB_MYSQL_HOST</Name> <Mode/> </Variable> <Variable> <Value>3306</Value> <Name>DB_MYSQL_PORT</Name> <Mode/> </Variable> <Variable> <Value>npm</Value> <Name>DB_MYSQL_USER</Name> <Mode/> </Variable> <Variable> <Value/> <Name>DB_MYSQL_PASSWORD</Name> <Mode/> </Variable> <Variable> <Value>npm</Value> <Name>DB_MYSQL_NAME</Name> <Mode/> </Variable> </Environment> Quote Link to comment
aglyons Posted August 26, 2022 Share Posted August 26, 2022 Running into a 403 trying to start the container. There is zero content in the log window. I've done a force update on the container. Still no dice. Any thoughts? Quote Link to comment
mgutt Posted August 26, 2022 Author Share Posted August 26, 2022 8 hours ago, aglyons said: Running into a 403 I don't think this is related to the container. Seems to be something else: Quote Link to comment
aglyons Posted August 27, 2022 Share Posted August 27, 2022 I figured it out. I had assigned an IP on the dockerz network. Another container on the same network was started prior to NPM starting and it was assigned the same IP address. Once I cleared the assigned IP NPM started ok. I made the assumption that defining an IP on a container would reserve the IP from the Docker DHCP. But the Docker network is not like a router. There is no IP reservation. At least defining it in a container is not going to reserve it lol. Quote Link to comment
mgutt Posted August 28, 2022 Author Share Posted August 28, 2022 Custom networks have integrated DHCP and DNS servers. So the best solution would be to leave the IP field blank and use the Container name as long both containers are in the same network. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.