7 ms·
Kiiind of. For the syncserver itself, where all the data is synced and stored, you just need tokenserver+syncstorage, plus a database backend of choice. Easy-p
by 3np 5y ago
Kiiind of.
For the syncserver itself, where all the data is synced and stored, you just need tokenserver+syncstorage, plus a database backend of choice. Easy-peasy, you can set it up trivially in minutes if you're used to spin up docker containers and have a database server. Loads of people do this.
However, you still need a way to authenticate. Most people just piggyback on Mozilla's servers for this. This means some metadata (not the synced data itself, mind you, but still) will be shared with Mozilla and a surprising number of third-parties.
To get the last meter and be fully self-reliant you need to go down quite the rabbit hole and set up the fxa stack. It involves several interconnected microservices and a handful of separate mysql databases. I managed to but it took a couple of days to dig through the sources and figure out exactly what is necessary and disable all the third-party integrations. The pieces are all there and it's all done in the open but it's clearly built with the mindset of a cloud-based startup.
https://github.com/mozilla/fxa https://github.com/mozilla/fxa
Once up and running it has been hands off, not much maintenance at all. Happy I did it but unless you like doing this kind of stuff as a challenge, I'd probably recommend using some alternative extension, until it becomes more approachable.
If you take it on, there are helpful people in the #fxa:mozilla.org Matrix room. More activity there, and self-hosting related discussion/issues/PRs in the fxa github repo, might push them to put in more effort to make it easier to self-host the stack and bring/keep docs up to date.
Hoping to do a proper write-up soon to make it more approachable for others, once things cool down a bit at work.
- GekkePrutser 5y agoIt really shouldn't be this hard though.. The way Mozilla has been embracing ads (eg pocket recommended sites) a voice in my head thinks this is intentional. On the other hand though it's been like this basically forever. It sounds more like a lack of interest in tackling this.
- jeltz 5y agoI don't think it is intentional, it just seems to me like standard enterprise software where the devs simply did not think about self hosting or keeping things simple.
- 3np 5y agoIt does seem they severely underestimate the interest in self-hosting. Lack of interest at Mozilla due to perceived lack of interest in the community. If more people engage and raise these issues on GH and Matrix, I think things can start to change. #fxa is almost a ghost town as of now. The few GH issues relating to this are not getting any interactions. We can't expect them to prioritize something nobody's asking for or using. I think there're more of us than they realize.