Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do you configure redirects just on the local IP address? #3728

Open
danielrosehill opened this issue Apr 27, 2024 · 2 comments
Open

How do you configure redirects just on the local IP address? #3728

danielrosehill opened this issue Apr 27, 2024 · 2 comments

Comments

@danielrosehill
Copy link

Hey!

I set up NPM on a Synology NAS for creating a couple of internal redirects to containers.

For instance, it might be nice to redirect:

10.0.0.1/HB

To:

10.0.0.1:3000

Where: 10.0.0.1 = Synology local IP and port 3000 = target service.

I was assuming that something like this would work out of the box but unfortunately not:

image

Is there a best practice for creating this kind of (internal IP) redirect?

@hughau
Copy link

hughau commented Apr 29, 2024

What I've done is setup an A record for *.int.domain.com (where I own domain.com) to point to my local private IP address (10.0.0.1 in your case), and I also create a wildcard certificate for *.internal.domain.com so I can use SSL internally.

Then I can setup different services in NPM to point to internal services - eg https://grafana.int.domain.com might point to the http://10.0.0.20:3030, and optionally use the SSL certificate.

@gratiachristi95
Copy link

This might help: https://askubuntu.com/questions/1370094/is-it-possible-to-alias-a-port-number

However, nginx proxy manager is as far as I know only setup to do domain & subdomain routing. Paths are done on the application side and not on the network side of things.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants