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

Announce .local domains via mDNS #16

Open
sesceu opened this issue Feb 11, 2017 · 1 comment
Open

Announce .local domains via mDNS #16

sesceu opened this issue Feb 11, 2017 · 1 comment

Comments

@sesceu
Copy link

sesceu commented Feb 11, 2017

I'm running rap + rancher on my homeserver, but I don't want to make every web application accessible from the outside via a FQDN. An example: I'm running a ympd instance to controll my Music Player Daemon. Since the music is only played at home, I don't want to have a publicly available URL, e.g. ympd.example.com, to access the web interface, because I'd then have to e.g. password protect it to prevent missuse. Instead, I'd like to make use of .local in order to get a local domain in my LAN, e.g. ympd.local, which would then automatically be resolved to the local LAN IP of the nginx proxy, which itself proxies the request to the host in my cluster running the ympd instance.

From a configuration perspective, I imagine one could just use the rap.host label and set it to ympd.local, which would then configure the nginx proxy to forward any connections to ympd.local to the rancher host running the ympd instance.

The way I understand it, rap would just have to add an avahi daemon plus some more advance parsing of the rap.host variable to its container being able to broadcast several .local domains. In some cases one might even define publicly available domains in addition to local domains, i.e. to circumvent password protection for local access from within the LAN, e.g. via rap.host=ympd.example.com,ympd.local, but that would just be a nice-to-have.

Is something like this possible/planned?

@sesceu
Copy link
Author

sesceu commented Feb 12, 2017

I just found this project. Maybe this could be integrated.

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

1 participant