Skip to content
This repository has been archived by the owner on Feb 21, 2022. It is now read-only.

Allow guest without login #61

Open
mdanetzky opened this issue Jan 22, 2018 · 8 comments
Open

Allow guest without login #61

mdanetzky opened this issue Jan 22, 2018 · 8 comments
Assignees

Comments

@mdanetzky
Copy link

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
Copy link
Member

NGPixel commented Jan 23, 2018

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

@NGPixel NGPixel self-assigned this Jan 23, 2018
@mdanetzky
Copy link
Author

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

@NGPixel
Copy link
Member

NGPixel commented Jan 27, 2018

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
Copy link
Author

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
Copy link
Member

NGPixel commented Jan 27, 2018

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

  • Can you share your docker-compose.yml and config.yml with private info removed?
  • In the wiki, under Account > Users, is the Guest account listed? What are the access rights of that user?

@mdanetzky
Copy link
Author

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
Copy link

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
Copy link

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.

@NGPixel NGPixel transferred this issue from requarks/wiki Dec 31, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants