From dc9d9085ce414ca063c199217387e0eee6b2d951 Mon Sep 17 00:00:00 2001 From: AlexBocken Date: Tue, 4 Jul 2023 11:04:41 +0200 Subject: [PATCH] more env vars for cleanliness --- docs/anki_sync_server.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/docs/anki_sync_server.md b/docs/anki_sync_server.md index 55e69a3..eac8627 100644 --- a/docs/anki_sync_server.md +++ b/docs/anki_sync_server.md @@ -13,6 +13,7 @@ Anki creates a sync server locally on 0.0.0.0:8080. We want to put this behind a Create a new `server{}` section in your nginx setup. Recommended is a new file in `/etc/nginx/sites-available/anki_sync_server` ```nginx +server { server_name anki.; listen 80; client_max_body_size 500M; @@ -61,6 +62,8 @@ ExecStart=anki --syncserver Restart=always User=anki Group=anki +Environment=SYNC_BASE="/var/lib/anki" +Environment=MAX_SYNC_PAYLOAD_MEGS=500 Environment=SYNC_USER1=: Environment=SYNC_USER2=: @@ -86,6 +89,9 @@ If everything looks good in the journal, you can `sytemctl renable anki_sync_ser ## Ankidroid 1. Go to: `Settings -> Advanced -> Custom sync server` -2. Set both the sync url to: `https://anki.` and the media sync url to `https://anki./msync` -3. Click on the sync icon in the main top-bar. Login using your `` and `` you set in the service file. -` +2. Set the sync url to: `https://anki.` +3. Set the media sync url to `https://anki./msync` +4. Click on the sync icon in the main top-bar. Login using your `` and `` you set in the service file. + +## More info +See https://docs.ankiweb.net/sync-server.html