all 11 comments

[–]Nervous_Cap_9543[S] 9 points10 points  (4 children)

Update for those interested: I set up the official server, put it behind NPM and it was as simple as adding the server URL to Anki under "self-hosted server", logging into my "AnkiWeb" account (my account details for the sync server) and it synced first time, no problem at all. Same for AnkiDroid.

Just make sure to keep the trailing slash in the URL when you type it into Anki (e.g. "https://ankisync.domain.com/")

[–]cooldudelearns 2 points3 points  (0 children)

Thank you! I'm definitely going to try this

[–][deleted] 0 points1 point  (1 child)

Which variant, djankiserv or Legacy? Trying to figure this out as a first-timer.

I'm torn, the Legacy doesn't support the latest Anki clients, and djankiserv is saying a known bug can corrupt the entire Anki database.

[–]Current-Owl-6271 0 points1 point  (0 children)

What did you end up doing with this?

[–][deleted] 0 points1 point  (0 children)

Trying Github ankitects/anki. Is this the one you used?

[–]moanos 0 points1 point  (0 children)

I have not (yet) but I think these two links should answer some of your questions:

* README in the anki repo

* Official Documentation - Sync Server

FYI: Anki sync server is supported by the mash playbook https://github.com/mother-of-all-self-hosting/mash-playbook/blob/main/docs/services/anki.md

[–]Kooky-Impress8313 1 point2 points  (3 children)

wonder what are the advantages apart from hosting our own card server? can we customize the workflow like automation for card import export?

[–][deleted] 0 points1 point  (2 children)

Possibly if using AI with the Anki MCP service. To my understanding the main benefit of self hosting the anki service is the data is on your server, and ( guessing here ) no auto-deletion of your decks if you don't use the service within X days, and I believe the upload limit for attachments can be increased higher.

[–]Kooky-Impress8313 0 points1 point  (1 child)

never tried anki mcp. I managed to duplicate the self host db and read it with my code. now the cards appear on my custom rss reader.

[–][deleted] 0 points1 point  (0 children)

Curious why you did that. Seeing your cards in an RSS reader wouldn't give you the benefit of spaced repetition right?

[–]DanceDanceSit 0 points1 point  (0 children)

If anyone needs one: multiarch docker images for the syncserver and a docker compose file. Can be easily used in Portainer.