Add option to create initial superuser (#323)

* Add option to create initial superuser

* Update .env.sample
This commit is contained in:
Sascha Ißbrücker
2022-09-04 08:08:15 +02:00
committed by GitHub
parent 5841ba0f4c
commit f88cc30b48
5 changed files with 112 additions and 0 deletions

View File

@@ -25,6 +25,22 @@ All options need to be defined as environment variables in the environment that
## List of options
### `LD_SUPERUSER_NAME`
Values: `String` | Default = None
When set, creates an initial superuser with the specified username when starting the container.
Does nothing if the user already exists.
See [`LD_SUPERUSER_PASSWORD`](#ld_superuser_password) on how to configure the respective password.
### `LD_SUPERUSER_PASSWORD`
Values: `String` | Default = None
The password for the initial superuser.
When left undefined, the superuser will be created without a usable password, which means the user can not authenticate using credentials / through the login form, and can only be authenticated using proxy authentication (see [`LD_ENABLE_AUTH_PROXY`](#ld_enable_auth_proxy)).
### `LD_DISABLE_BACKGROUND_TASKS`
Values: `True`, `False` | Default = `False`