Skip to content
Discussion options

You must be logged in to vote

OK, I got this sorted.

What I wanted to do is protect an admin URL while leaving the web app publicly accessible. This should work with most apps.

With apps that have their admin interface on a different port (ex. Webmin on port 10000), I just don't expose the admin interface port in NPM. This example is for an app that just uses /admin (or something like that on port 80 or 443) to access the web admin interface. In general, it's best to never expose admin URLs to the Internet.

This worked for me running Vaultwarden on Docker (in DMZ and no NAT from LAN):

In NPM, starting with a working "proxy host", I added a "custom location" just pointing to port 80 (where the traffic went previously) :

Replies: 5 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@sonoracomm
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Disorganise
Comment options

Answer selected by sonoracomm
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants