Skip to content

Commit c4b43bd

Browse files
committed
Add possibility to specify hashed password
1 parent 56edbf4 commit c4b43bd

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

Python.Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ ENV SYNC_USER1="anki:ikna"
88
ENV SYNC_BASE="/data"
99
ENV SYNC_HOST="0.0.0.0"
1010
ENV SYNC_PORT="8080"
11+
ENV PASSWORDS_HASHED=0
1112

1213
VOLUME /data
1314

README.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,19 @@ are not lost and can still be downloaded.
2525

2626
## Environment Variables
2727

28-
| Variable | Default | Purpose |
29-
|:----------:|:---------:|:------------------------:|
30-
| SYNC_USER1 | anki:ikna | Default Anki account |
31-
| SYNC_USERX | - | Additional Anki accounts |
32-
| SYNC_BASE | /data | Data storage directory |
33-
| SYNC_HOST | 0.0.0.0 | Host binding |
34-
| SYNC_PORT | 8080 | Port binding |
28+
| Variable | Default | Purpose |
29+
|:----------------:|:---------:|:------------------------:|
30+
| SYNC_USER1 | anki:ikna | Default Anki account |
31+
| SYNC_USERX | - | Additional Anki accounts |
32+
| SYNC_BASE | /data | Data storage directory |
33+
| SYNC_HOST | 0.0.0.0 | Host binding |
34+
| SYNC_PORT | 8080 | Port binding |
35+
| PASSWORDS_HASHED | 0 | Enable hashed passwords |
36+
37+
There is also the possibility to pass hashed instead of plain text passwords. To do so, you have to
38+
set ``PASSWORDS_HASHED`` to ``1``. Anki recommends a tool like
39+
[this one](https://git.sr.ht/~laalsaas/pbkdf2-password-hash) to generate pbkdf2 hashes but feel free
40+
to use whichever tool you like the most. Keep in mind that you have to use PHC string format.
3541

3642
## Volumes
3743

0 commit comments

Comments
 (0)