Skip to content
Snippets Groups Projects
Verified Commit 9bf29adb authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

Make dynaconf envless in docs

parent 224dd2c4
No related branches found
No related tags found
1 merge request!323Update dependency dynaconf to v3
Pipeline #3679 failed
......@@ -27,25 +27,21 @@ configuration by topic.
A configuration file might look like this::
[default]
secret_key = "VerySecretKeyForSessionSecurity"
[default.http]
allowed_hosts = [ "aleksis.myschool.example.com", "localhost" ]
[default.database]
name = "aleksis"
user = "aleksis"
password = "SuperSecretPassword"
[default.caching]
memcached = { enabled = true, address = "127.0.0.1" }
The `secret_key` setting above defines a single value. The following `http`
section defines a table (cf. a dictionary) in one way, and you can see the
second form of such a table in the `memcached` setting (we could as well
have defined another section called `[default.caching.memcached]` and placed
`enabled` and `address` below it as scalars).
have defined another section and placed `enabled` and `address` below it
as scalars).
This can be a bit confusing, so this documentation will explain how to
configure AlekSIS on a per-feature basis.
......
......@@ -25,10 +25,8 @@ configuration file. For example, add something like the following to your
configuration (normally in `/etc/aleksis`; you can either append to an
existing file or add a new one)::
[default.ldap]
uri = "ldaps://ldap.myschool.edu"
bind = { dn = "cn=reader,dc=myschool,dc=edu", password = "secret" }
[default.ldap.users]
search = { base = "ou=people,dc=myschool,dc=edu", filter = "(uid=%(user)s)" }
map = { first_name = "givenName", last_name = "sn", email = "mail" }
......@@ -32,7 +32,6 @@ Configure AlekSIS to use PostgreSQL
Fill in the configuration under `/etc/aleksis/aleksis.toml` (or a file with any other name in this directory)::
[default.database]
host = "localhost"
name = "aleksis"
username = "aleksis"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment