Radiokot / umbrel-cloudflared

🔌 Umbrel app for Cloudflare Tunnel (cloudflared)
https://radiokot.com.ua/p/umbrel-cloudflared
GNU General Public License v3.0
16 stars 3 forks source link

Pre-Determine tunnels for apps #6

Open bijeebuss opened 5 months ago

bijeebuss commented 5 months ago

I had an idea for how to potentially use this to solve an issue with trying to setup fedimint as an umbrel app. but I think it could also be relevant for other apps. Fedimint needs to be available publicly and it needs to know what URL its available on before even starting up.

What are your thoughts on this change?:

This app could have a UI section where you associate one of your tunnels with an umbrel app ID. Then it writes the URL to a file somewhere in the app data like /data/umbrel-apps/my_umbrel_app_id and the contents of that file would just be the public URL you will be pointing to the app. This way when the fedimint app starts up it can mount the cloudflared app data dir somewhere and then read its URL from the file based on its app ID.

Or maybe there is an easier way to achieve this by setting a metadata flag on the tunnel or something and then using curl to get it?

Radiokot commented 5 months ago

This app is a tunnel connector, it can't manage the routes. The routes are managed under your Cloudflare Zero Trust dashboard. If I correctly unredstood what you are asking for, I think it can't be done.

If I had a service requiring some preparation before starting up, I would:

bijeebuss commented 5 months ago

It can't manage the routes but it can list them right? That would be sufficient to do this. But either way I think like your idea better anyway

Radiokot commented 5 months ago

Good luck 😉

bijeebuss commented 5 months ago

Do you know any good examples of apps that do this already?

On Thu, Feb 8, 2024 at 2:58 PM Oleg Koretsky @.***> wrote:

Good luck 😉

— Reply to this email directly, view it on GitHub https://github.com/Radiokot/umbrel-cloudflared/issues/6#issuecomment-1934998231, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC2AVPDBPX5RG4ZCSO6F72TYSVC75AVCNFSM6AAAAABDAO7ZEOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZUHE4TQMRTGE . You are receiving this because you authored the thread.Message ID: @.***>

Radiokot commented 5 months ago

No, just had this idea. This is a creative hacking/patching when you can't modify the original software 🙂