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

[Question] How do you access services like nextcloud ? #1

Closed
blmhemu opened this issue Dec 10, 2020 · 3 comments
Closed

[Question] How do you access services like nextcloud ? #1

blmhemu opened this issue Dec 10, 2020 · 3 comments
Labels
question Further information is requested

Comments

@blmhemu
Copy link

blmhemu commented Dec 10, 2020

First of all wonderful writeup at your blog

Coming to the question,
How do you access services like nextcloud when you are outside your private network. I understand that you can access the invidual devices with tailscale, but how to integrate ingress-nginx with tailscale ?
Ex: Say i am connected to multi master HA k3s cluster via tailwind, how do i access my service with simple domain names like
nextcloud.myhome.local
bitwarden.myhome.local
on my laptop / mobile ?

@mr-karan
Copy link
Owner

How do you access services like nextcloud when you are outside your private network. I understand that you can access the invidual devices with tailscale, but how to integrate ingress-nginx with tailscale ?

I run Caddy web server and that listens on Tailscale IP. My devices (Android phone, iPad) have Tailscale agents installed on them and they can access the Nextcloud server directly (like an overlay mesh, on top of Wireguard).

The setup has gone multiple changes since the last blog post and a new one is due for an update soon. :)

Thanks!

@blmhemu
Copy link
Author

blmhemu commented Dec 10, 2020

Eagerly waiting for a new blog post. A few questions in the meanwhile:
Do tailscale IPs remain constant (static) ?
Also, can you point me to the right files to understand your configuration.
Also how do you point the custom domain name to the tailwinds ip ?

@mr-karan
Copy link
Owner

Do tailscale IPs remain constant (static) ?

Yes, for every device they remain the same.

Also, can you point me to the right files to understand your configuration.

You can take a look at this and this. I create 2 separate Caddy containers for Private/Public sites. These 2 containers have their own docker networks. For any site that I want to use private only, I attach the container to the Caddy private docker network.

Also how do you point the custom domain name to the tailwinds ip ?

I use Cloudflare for this. Setup an A record pointing to a private Tailscale IP.

@mr-karan mr-karan added the question Further information is requested label Jun 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants