m0wer / tiddlywiki-docker

NodeJS based TiddlyWiki 5 Docker image.
https://hub.docker.com/r/m0wer/tiddlywiki
GNU General Public License v3.0
48 stars 28 forks source link

Turn of AUTH? #3

Closed bartagergely closed 2 years ago

bartagergely commented 3 years ago

Is there a way to turn off BASIC AUTH completely? I want the authentication on the reverse-proxy located 'in front of' the tiddlywiki. Thank you!

virgil9306 commented 3 years ago

Inside init-and-run-wiki there is a line at the end that says exec /usr/bin/env node ... -- just remove the USERNAME and PASSWORD parts

ghost commented 3 years ago

Sorry, where is init-and-run-wiki?

nikolaus-stahlberg commented 3 years ago

Sorry, where is init-and-run-wiki?

Its one of the files in this repo. It is referenced by the Dockerfile.

Therefore to make the changes mentioned by @virgil9306 one needs to clone this repo, edit the init-and-run-wiki file accordingly and build the docker image locally by running # docker build <directory_of_Dockerfile>

thedeany commented 3 years ago

Alternatively, you could docker exec -it YOUR_CONTAINER /bin/sh and then cd /usr/local/bin and vi init-and-run-wiki to edit the file in place, removing the username and password options. This will survive a container restart but probably not a recreation. But this is an alternative to building the image yourself.

m0wer commented 2 years ago

First of all, sorry for the late reply. I didn't get any notifications since the repo is a fork and it was unwatched by default.

Now authentication is off unless the USERNAME environment variable is set.