-
was able to set *.homelab rewritten to the IP of my NPM instance via my DNS server, and i could have something like adguard.homelab proxy host set up to forward http://IP:PORT. it worked with no issue on NPM. but I cant seem to do that in NPMPlus it seems to redirect to the congratulations page. What am I doing wrong? this is for internal use only, no external access. |
Beta Was this translation helpful? Give feedback.
Replies: 26 comments 18 replies
-
Even if you do this request using curl? |
Beta Was this translation helpful? Give feedback.
-
With npm it just worked with no issue no need to do anything extra. Just rewrote the wildcard *.homelab with my npm instance as destination and it worked for all 23 hosts. With this one I always get the congrats page except for npm.homelab which returns correctly. You ask about doing this request with curl. Which host should I run the command on? |
Beta Was this translation helpful? Give feedback.
-
One of your choice, can you show me the list of your proxy hosts? |
Beta Was this translation helpful? Give feedback.
-
adguard.homelab -> http://192.168.0.4:8081 See above for an example of one single host. I'm not at my pc rn to give the full list. |
Beta Was this translation helpful? Give feedback.
-
Just send a Screenshot when you can |
Beta Was this translation helpful? Give feedback.
-
Did you want the original NPM screenshot or both NPM+ and original? |
Beta Was this translation helpful? Give feedback.
-
Npmplus is enough |
Beta Was this translation helpful? Give feedback.
-
Can you maybe send me theier config file from /opt/npm/nginx/proxy_hosts, please? |
Beta Was this translation helpful? Give feedback.
-
what happens if you execute |
Beta Was this translation helpful? Give feedback.
-
Could not resolve hostname unifi.homelab |
Beta Was this translation helpful? Give feedback.
-
did you configured your nameserver correctly? |
Beta Was this translation helpful? Give feedback.
-
All of my network is designed to look at my adguard home instance for DNS |
Beta Was this translation helpful? Give feedback.
-
then it would at least be able to resolve dns, which it can not, as you can read yourself. |
Beta Was this translation helpful? Give feedback.
-
Is there a better way in npm plus to do this? Im mainly using it to make local records in a sense. Most of these services I don't want exposed to the Internet as I use unifi teleport VPN to access my site securely |
Beta Was this translation helpful? Give feedback.
-
please run the curl commands otherwise I can't debug why it is not working |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
I think the main issue is that all of the *.homelab stuff is being directed to NPM+ but not being routed to the true destination somehow. |
Beta Was this translation helpful? Give feedback.
-
ok it seems for some reason to return a redirect to https, I will try reproduce it latert today |
Beta Was this translation helpful? Give feedback.
-
Thanks! keep me posted :) |
Beta Was this translation helpful? Give feedback.
-
can you maybe send me your entire /opt/npm/nginx folder please? as a zip file maybe? to see which configuration could be the problem. since I can't reproduce it. And your compose file please |
Beta Was this translation helpful? Give feedback.
-
Please see the uploaded files for the information you requested :) |
Beta Was this translation helpful? Give feedback.
-
I've created a new NPMplus and pasted your configs in, created dns rewrites and it worked. No redirect to https |
Beta Was this translation helpful? Give feedback.
-
So what am I missing? Did I miss something in a setup somewhere? |
Beta Was this translation helpful? Give feedback.
can you maybe change your hosts to proxy to https, so for example unifi try instead of http 192.168.0.1 80 try https 192.168.0.1 443