Merge pull request #3 from 0atman/master

Password Auth
This commit is contained in:
Martin Honermeyer 2017-01-15 22:57:17 +01:00 committed by GitHub
commit b3efdcddc7
2 changed files with 8 additions and 1 deletions

View file

@ -18,3 +18,9 @@ to lose sight of that, I recommend using a local folder for the volume.
sudo docker run -d -p 8080:8080 -v $(pwd)/.tiddlywiki:/var/lib/tiddlywiki mazzolino/tiddlywiki
In this example, the folder `$(pwd)/.tiddlywiki` is used for the data.
# Auth
Default auth is `user` / `wiki`
Simply provide the USERNAME and PASSWORD env variables to customise.

View file

@ -5,4 +5,5 @@ if [ ! -d /var/lib/tiddlywiki/mywiki ]; then
tiddlywiki mywiki --init server
fi
exec tiddlywiki mywiki --server 8080 $:/core/save/all text/plain text/html user "" 0.0.0.0
exec tiddlywiki mywiki --server 8080 $:/core/save/all text/plain text/html ${USERNAME:-user} ${PASSWORD:-'wiki'} 0.0.0.0