DEPRECATED -- Dockerized ankisyncd, targeting more recent releases of Anki/AnkiDroid
1.4K
Dockerized ankisyncd, targeting more recent releases of Anki/AnkiDroid
Uses ankicommunity/anki-sync-server codebase.
Follow instructions from 'Setting up Anki' for setting up AnkiDroid and desktop versions.
Enter container:
$ docker exec -it anki /bin/bash
and execute:
$ cp ./ankisyncd_cli/ankisynctl.py .
$ python ./ankisyncctl.py adduser <username>
Copy step can be skipped if issue/128 is resolved.
labels:
traefik.http.services.anki.loadbalancer.server.port: "27701"
This would allow connecting to the anki server through your main entrypoint (normal port 80/443).
Set VIRTUAL_PORT environment variable to 27701.
For v2.3.0 and prior, place the following in /etc/nginx/proxy.conf:
# HTTP 1.0 support
proxy_http_version 1.0;
proxy_buffering off;
proxy_set_header Host $http_host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $proxy_connection;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $proxy_x_forwarded_proto;
proxy_set_header X-Forwarded-Ssl $proxy_x_forwarded_ssl;
proxy_set_header X-Forwarded-Port $proxy_x_forwarded_port;
proxy_set_header X-Forwarded-Path $request_uri;
# Mitigate httpoxy attack
proxy_set_header Proxy "";
| Variable | Default Value |
|---|---|
ANKISYNCD_HOST | 0.0.0.0 |
ANKISYNCD_PORT | 27701 |
ANKISYNCD_DATA_ROOT | /srv/ankisyncd |
ANKISYNCD_BASE_URL | /sync/ |
ANKISYNCD_BASE_MEDIA_URL | /msync/ |
ANKISYNCD_AUTH_DB_PATH | /srv/ankisyncd/auth.db |
ANKISYNCD_SESSION_DB_PATH | /srv/ankisyncd/session.db |
I'm available for freelance, contracts, and consulting both remotely and in the Hudson Valley, NY (USA) area. Some more about me and what I can do for you.
Feel free to drop me a message at:
hi [a+] zweisolutions {●} com
ankicommunity/anki-sync-server is licensed under GPLv3
This repo is MIT
Content type
Image
Digest
sha256:285aa7b73…
Size
55.7 MB
Last updated
over 3 years ago
docker pull zweizs/docker-ankisyncd