Domain point to interal IP if accessed from LAN


Recommended Posts

I'm not sure whether this is even possible, but here's my question.

Is there a way I can make the domain I use for my unRAID server, if accessed internally, to point to an IP:PORT instead? I'm using letsencrypt and nginx to achieve a reverse proxy, where sonarr.mydomain.com, for example, works. However, if accessing within my LAN, I want to be able to bypass authentication set-up by nginx, and go directly into sonarr. My idea was to somehow, if that URL is accessed from my LAN, then make it points to SONARR-IP:PORT directly.

I hope this makes sense.

Thanks

Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.