requarks / wiki-v1

Legacy version (1.x) of Wiki.js
https://wiki.js.org
GNU Affero General Public License v3.0
101 stars 75 forks source link

Allow guest without login #61

Open mdanetzky opened 6 years ago

mdanetzky commented 6 years ago

Wiki.js always prompts for user login

There should be a way to allow everyone to see wiki pages without the need to log in

in config.yml set

public: true 
auth:
  defaultReadAccess: true
  local:
    enabled: true

observe login still popping up.

NGPixel commented 6 years ago

Setting public: true will allow guest viewing. Have you restarted Wiki.js after making the change?

mdanetzky commented 6 years ago

Yes, I did restart it. I even upgraded the wiki.js (and lost all the pages in the process).

NGPixel commented 6 years ago

All content is stored in /repo folder, which is kept in sync with your remote git. The only way to loose your pages is that you delete the repo folder AND didn't configure the remote git sync.

mdanetzky commented 6 years ago

We know that now! We assumed, that the wiki/tools/docker-compose.yml creates all mutable volumes automatically. This is not true. We have learned our lesson the hard way and will not trust these files in the future. Back to main topic - public wiki is not working - so we decided to publish markdown using other means.

NGPixel commented 6 years ago

Nobody else has this issue so you must be doing something wrong.

mdanetzky commented 6 years ago

It is https://github.com/Requarks/wiki/blob/master/tools/docker-compose.yml It was the default Guest user, we haven't change it.

mbitsnbites commented 5 years ago

I have the same (or similar?) problem.

public: true

auth:
  defaultReadAccess: false
  local:
    enabled: true

When entering the top URL in the browser I get the "Forbidden" sign:

bild

unquietwiki commented 5 years ago

Related to issue #143

If you set "public: true" after first starting the site / container, you'll need to edit / wipe the MongoDB database to remove the guest account. It needs to be recreated with the public permission.