Moved config.sample directly in canaille

This commit is contained in:
Éloi Rivard 2023-06-30 23:52:22 +02:00
parent 459c308f71
commit c30d2f7161
5 changed files with 7 additions and 7 deletions

View file

@ -70,7 +70,7 @@ You can populate the database with randomly generated users and groups with the
.. code-block:: console
# If using docker:
docker compose exec canaille env CONFIG=conf/canaille.toml poetry run canaille populate --nb 100 users # or docker-compose
docker compose exec canaille env CONFIG=conf-docker/canaille.toml poetry run canaille populate --nb 100 users # or docker-compose
# If running in local environment
env CONFIG=conf/canaille.toml poetry run canaille populate --nb 100 users

View file

@ -1,4 +1,4 @@
include canaille/conf/*.sample.*
include canaille/*.sample.*
graft canaille/backends/ldap/schemas
graft canaille/templates
graft canaille/themes

View file

@ -187,9 +187,9 @@ WRITE = [
[OIDC.JWT]
# The path to the private key.
PRIVATE_KEY = "canaille/conf/private.pem"
PRIVATE_KEY = "canaille/private.pem"
# The path to the public key.
PUBLIC_KEY = "canaille/conf/public.pem"
PUBLIC_KEY = "canaille/public.pem"
# The URI of the identity provider
# ISS = "https://auth.mydomain.tld"
# The key type parameter

View file

@ -194,11 +194,11 @@ Canaille needs a key pair to sign the JWT. The installation command will generat
:PRIVATE_KEY:
**Required.** The path to the private key.
e.g. ``/path/to/canaille/conf/private.pem``
e.g. ``/path/to/private.pem``
:PUBLIC_KEY:
**Required.** The path to the public key.
e.g. ``/path/to/canaille/conf/private.pem``
e.g. ``/path/to/public.pem``
:ISS:
*Optional.* The URI of the identity provider.

View file

@ -32,7 +32,7 @@ Choose a path where to store your configuration file. You can pass any configura
export CANAILLE_CONF_DIR=/etc/canaille
sudo mkdir --parents "$CANAILLE_CONF_DIR"
sudo cp $CANAILLE_INSTALL_DIR/env/lib/python*/site-packages/canaille/conf/config.sample.toml "$CANAILLE_CONF_DIR/config.toml"
sudo cp $CANAILLE_INSTALL_DIR/env/lib/python*/site-packages/canaille/config.sample.toml "$CANAILLE_CONF_DIR/config.toml"
You should then edit your configuration file to adapt the values to your needs.