mirror of
https://github.com/m0wer/tiddlywiki-docker.git
synced 2026-01-23 02:24:25 +00:00
feat(init-and-run-wiki): disable auth by default
This commit is contained in:
parent
a6aafb6375
commit
c71a3fcd89
2 changed files with 7 additions and 6 deletions
|
|
@ -42,10 +42,8 @@ In this example, the folder `$(pwd)/.tiddlywiki` is used for the data.
|
|||
|
||||
## Authentication
|
||||
|
||||
Default credentials are `user`:`wiki`.
|
||||
|
||||
Simply provide the `USERNAME` and `PASSWORD` environment variables to
|
||||
customize.
|
||||
Authentication is disabled by default. To enable it, simply provide the
|
||||
`USERNAME` and `PASSWORD` environment variables.
|
||||
|
||||
## Other settings
|
||||
|
||||
|
|
|
|||
|
|
@ -18,5 +18,8 @@ fi
|
|||
|
||||
|
||||
# Start the tiddlywiki server
|
||||
|
||||
exec /usr/bin/env node $NODEJS_V8_ARGS $tiddlywiki_script mywiki --listen host=0.0.0.0 port=8080 username="${USERNAME:-user}" password="${PASSWORD-wiki}" debug-level=${DEBUG_LEVEL-none}
|
||||
if [ -z "$USERNAME" ]; then
|
||||
exec /usr/bin/env node $NODEJS_V8_ARGS $tiddlywiki_script mywiki --listen host=0.0.0.0 port=8080 debug-level=${DEBUG_LEVEL-none};
|
||||
else
|
||||
exec /usr/bin/env node $NODEJS_V8_ARGS $tiddlywiki_script mywiki --listen host=0.0.0.0 port=8080 username="$USERNAME" password="${PASSWORD-wiki}" debug-level=${DEBUG_LEVEL-none};
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue