Anki Sync ServerΒΆ
uv venv .anki-sync-server
source .anki-sync-server/bin/activate
uv pip install anki
export SYNC_HOST=0.0.0.0
export SYNC_PORT=8060
SYNC_USER1=<username>:<password> python -m anki.syncserver
Close it.
sudo vim /etc/systemd/system/anki-sync-server.service
[Unit]
Description=Anki Sync Server
After=network.target
[Service]
User=root
Group=root
WorkingDirectory=/path/to/.anki-sync-server
Environment="SYNC_USER1=<username>:<password>"
Environment="SYNC_USER1=SYNC_HOST=0.0.0.0"
Environment="SYNC_USER1=SYNC_PORT=8060"
ExecStart=/path/to/.anki-sync-server/bin/python -m anki.syncserver
Restart=always
[Install]
WantedBy=multi-user.target
sudo systemctl enable --now anki-sync-server