Skip to content

Commit

Permalink
Suggestion to require auth on local login config page
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesread committed Feb 21, 2025
1 parent a685e00 commit 4f7faaf
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions modules/ROOT/pages/security/local.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,20 @@ docker run --rm -i --net=none leplusorg/hash sh -c 'echo -n "myPassword" | argon
```

Then simply visit the OliveTin web interface and browse to the login page, eg: http://olivetin.example.com:1337/login

==== Force login page

If you don't want to allow guests to do anything in OliveTin, you can use the `authRequireGuestsToLogin` option to force all users to login before they do anything. This will redirect all users to the login page if they are not logged in, and it will also set `defaultPermissions` to `false`, meaning that permissions must be explicitly set for each user or user group.

.`config.yaml`
```yaml

authRequireGuestsToLogin: true

authLocalUsers:
enabled: true
users:
- username: james
password: $argon2id$v=19$m=65536,t=4,p=6$LnNW4sw+jZfa5Ex3YjfuHQ$vl8pjUJhxNmBxScV4lI3cgAZPkNB1rSrnX6ibgoAP8k
```

0 comments on commit 4f7faaf

Please sign in to comment.