Commit Graph

3 Commits

Author SHA1 Message Date
klmmr
2d14d7095f [DOCS] Fix example config wrt. admin_value_regex and admin_group_regex
Before this change, the example config in some places had
`admin_value_regex` and `admin_group_regex` as list items under
`admin_mapping`, which caused the following error:

```
panic: failed to load config from yaml: yaml error: yaml: unmarshal errors:
  line 45: cannot unmarshal !!seq into config.OauthAdminMapping
```

Removing the list and making them normal YML items prevents this error,
as `admin_mapping` does not expect a list.

This also fits my understanding of the [config implementation](7557a6ef5a/internal/config/auth.go (L32))
and another [example config file](662e9c0549/config.yml.sample (L88)).

Signed-off-by: klmmr <35450576+klmmr@users.noreply.github.com>
2025-02-07 17:12:03 +01:00
Dmytro Bondar
043d25a08f
[docs] big bang update (#348)
* [docs] big bang update

* Simplified polluted README.md by moving parts to the documentation
* Removed duplicates with `pymdownx.snippets` extension
* Enabled code copy
* Extended "Getting Started"
* Added "Monitoring" page
* Separated "Upgrade" page
* Added default config yaml to docs

Signed-off-by: Dmytro Bondar <git@bonddim.dev>

* Update sources.md

Co-authored-by: h44z <christoph.h@sprinternet.at>

---------

Signed-off-by: Dmytro Bondar <git@bonddim.dev>
Co-authored-by: h44z <christoph.h@sprinternet.at>
2025-01-23 08:06:55 +01:00
Christoph Haas
662e9c0549 Improve admin privilege handling for OAuth. Update documentation. 2025-01-18 11:55:56 +01:00