bridgy icon indicating copy to clipboard operation
bridgy copied to clipboard

Make Bridgy self-hostable, without Google Cloud

Open kuba-orlik opened this issue 3 years ago • 9 comments

The project seems to rely on Google Cloud. Is it possible to self-host it outside Google's infrastructure, or is it tied to Google?

kuba-orlik avatar Oct 16 '22 20:10 kuba-orlik

It's somewhat tied to GCP right now. The app itself can run in any Python 3 WSGI container, but it uses Google Cloud Datastore (via ndb) and Cloud Tasks. It shouldn't be too hard to migrate from Tasks to a different task scheduler, eg Rabbit, but migrating from Datastore to a different database would take some work. Definitely doable though!

I haven't put much work into supporting alternatives because it's designed to be a single-instance service, not something that users install and run. I'm open to it though, PRs are welcome!

snarfed avatar Oct 16 '22 20:10 snarfed

@kuba-orlik What are you imagining?

Ryuno-Ki avatar Oct 20 '22 13:10 Ryuno-Ki

I'm imagining a version of Bridgy that I can self-host. I want to automate POSSE, but not using Google's infrastructure... That's be counter-productive for me

kuba-orlik avatar Oct 20 '22 14:10 kuba-orlik

Understood! PRs are welcome. And there are lots of other POSSE options and projects! Many of us in chat have experience here, feel free to jump in and ask.

snarfed avatar Oct 20 '22 15:10 snarfed

Yeah, I've got that part. But I was more thinking along the lines of on-premise (say, on Hetzner VPS) or in another cloud provider etc.

Please, share a summary of the chat here if you found a solution.

Ryuno-Ki avatar Oct 21 '22 07:10 Ryuno-Ki

I prefer hosting on a VPS, as that makes it the easiest to switch providers.

This idea is slowly cooking in my head, will report here when there's some progress :)

kuba-orlik avatar Oct 22 '22 06:10 kuba-orlik

@kuba-orlik is your idea to migrate Bridgy away from Google Cloud Datastore and Tasks? Or something else?

I don't plan to migrate https://brid.gy/ itself away, but if you hope to make it support both somehow, and you want to track that in this issue, I'm open to that! Otherwise, I'm inclined to close this.

snarfed avatar Nov 06 '22 16:11 snarfed

My idea is to have an option in the code that would enable someone to self-host another instance of bridgy without relying on the Google Cloud infrastructure.

This issue is not about migrating the brid.gy instance itself to that hypothetical new configuration

kuba-orlik avatar Nov 13 '22 14:11 kuba-orlik

Ah, sorry, sure! I meant migrating the code, not the literal https://brid.gy/ instance.

We'd also ideally want these self-hosted instances to be private, ie not allow signups from the general public.

Happy to leave this issue open to track this idea!

snarfed avatar Nov 13 '22 16:11 snarfed