Skip to content

Instantly share code, notes, and snippets.

@ahanniga
Created July 20, 2022 19:09
Show Gist options
  • Save ahanniga/ab87b066273d6d494880510116f531a4 to your computer and use it in GitHub Desktop.
Save ahanniga/ab87b066273d6d494880510116f531a4 to your computer and use it in GitHub Desktop.

Tiddlywiki Auth Options

No access except to specified user/pass

export USERNAME=yourname
export PASSWORD=yourpassword
tiddlywiki . --listen \
    host=0.0.0.0 \
    port=8181 \
    tls-cert=/path/to/cert.pem \
    tls-key=/path/to/privkey.pem \
    username=$USERNAME \
    password=$PASSWORD

Read-only mode

People can read and interract, but no one can edit

tiddlywiki . --listen writers=somerandomisedstring

Read only, sign-in to edit

tiddlywiki . --listen "readers=(anon)" writers=tom username=tom password=mypass

Or provide a comma-delimited file with username and passwords

tiddlywiki . --listen "readers=(anon)" credentials=credentials.csv

The CSV files requires a header!

username,password
joe,bl0w
jane,d03
andy,p4NdY
roger,r4bbIT

Invoke the login

Once up, you can log by navigating to http://server:port/login-basic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment