This is the multi-page printable view of this section. Click here to print.
Concepts
Concepts used in ABR in more detail.
1 - Environment Variables
List of the environment variables that can be set.
| ENV | Description | Default |
|---|---|---|
ABR_APP__PORT |
The port to run the server on. | 8000 |
ABR_APP__DEBUG |
If to enable debug mode. Not recommended for production. | false |
ABR_APP__OPENAPI_ENABLED |
If set to true, enables an OpenAPI specs page on /docs. |
false |
ABR_APP__CONFIG_DIR |
The directory path where persistant data and configuration is stored. If ran using Docker or Kubernetes, this is the location a volume should be mounted to. | /config |
ABR_APP__LOG_LEVEL |
One of DEBUG, INFO, WARN, ERROR. |
INFO |
ABR_APP__BASE_URL |
Defines the base url the website is hosted at. If the website is accessed at example.org/abr/, set the base URL to /abr/ |
|
ABR_DB__SQLITE_PATH |
If relative, path and name of the sqlite database in relation to ABR_APP__CONFIG_DIR. If absolute (path starts with /), the config dir is ignored and only the absolute path is used. |
db.sqlite |
ABR_APP__DEFAULT_REGION |
Default audible region to use for the search. Has to be one of us, ca, uk, au, fr, de, jp, it, in, es, br. |
us |
ABR_APP__FORCE_LOGIN_TYPE |
Forces the login type and prevents it from being modified. Can be one of basic, forms, oidc, or none to disable the login. oidc requires both the ABR_APP__INIT_ROOT_USERNAME and ABR_APP__INIT_ROOT_PASSWORD environment variables to be set. |
|
ABR_APP__INIT_ROOT_USERNAME |
Sets the initial username of the root user when first launching ABR. Has no effect if a root admin already exists. | |
ABR_APP__INIT_ROOT_PASSWORD |
Sets the initial password of the root user when first launching ABR. Has no effect if a root admin already exists. | |
ABR_DB__USE_POSTGRES |
Whether to use Postgres as a database. Ensure the connection settings are valid. | false |
ABR_DB__POSTGRES_HOST |
Host URL/IP of the postgres instance. | localhost |
ABR_DB__POSTGRES_PORT |
Port of the postgres instance. | 5432 |
ABR_DB__POSTGRES_DB |
Database name of the postgres instance. | audiobookrequest |
ABR_DB__POSTGRES_USER |
Username of the postgres database. | abr |
ABR_DB__POSTGRES_PASSWORD |
Password of the postgres database. | password |
ABR_DB__POSTGRES_SSL_MODE |
SSL mode to use for the postgres instance. | prefer |
Note
There are two underscores (__) between the first
and second part of each environment variable like between ABR_APP and PORT.