|
| 1 | +Environment variables can be used to customize core Conreq features at boot. |
| 2 | + |
| 3 | +## Environment Variables File |
| 4 | + |
| 5 | +Editing Conreq's `settings.env` file is the recommended way of adding environment variables. |
| 6 | + |
| 7 | +Here are some common locations of this file. |
| 8 | + |
| 9 | +| Operating System | Location | |
| 10 | +| ---------------------------------- | ------------------------------------ | |
| 11 | +| Manually Run (Windows/Linux/MacOS) | `<CONREQ_DIR>/data/settings.env` | |
| 12 | +| Unraid Community Apps | `<APP_DATA_DIR>/conreq/settings.env` | |
| 13 | +| Docker | `/config/settings.env` | |
| 14 | + |
| 15 | +## System Variables |
| 16 | + |
| 17 | +Variables can alternatively be set through the system's environment variables. |
| 18 | + |
| 19 | +| Operating System | Location | |
| 20 | +| --- | --- | |
| 21 | +| Manually Run (Windows/Linux/MacOS) | [Varies depending on operating system.](https://www.twilio.com/en-us/blog/how-to-set-environment-variables-html) | |
| 22 | +| Unraid Docker | Through a docker's `Edit` menu, click `Add another Path, Port, Variable, Label, or Device`, and then under `Config Type` select `Variable`. | |
| 23 | +| Docker | Add as a `-e` parameter via command line, or [using the environment field in your compose file.](https://docs.docker.com/compose/environment-variables/#set-environment-variables-in-containers) | |
| 24 | + |
| 25 | +_Note: System environment variables take priority over those stored in `settings.env`._ |
| 26 | + |
| 27 | +## Available Variables |
| 28 | + |
| 29 | +```bash |
| 30 | +# General Settings |
| 31 | +TZ = America/Los_Angeles # default: UTC (Timezone for log files, in "TZ Database" format) |
| 32 | +BASE_URL = requests # default: None |
| 33 | +APP_NAME = RequestCentral # default: Conreq |
| 34 | +APP_DESCRIPTION = Get yo stuff! # default: Content Requesting |
| 35 | +ARR_REFRESH_INTERNAL = */15 # default: */1 (Cron minutes for Sonarr/Radarr library refresh) |
| 36 | +LOG_LEVEL = ERROR # default: WARNING |
| 37 | +CONREQ_ENV_PREFIX = CONREQ # default: None |
| 38 | + |
| 39 | +# Data Storage |
| 40 | +DATA_DIR = /example/directory # default: /config (Defaults to "data" outside of docker) |
| 41 | +DB_ENGINE = MYSQL # default: SQLITE3 |
| 42 | +MYSQL_CONFIG_FILE = /config/mysql.cnf # default: None |
| 43 | + |
| 44 | +# Security |
| 45 | +SSL_SECURITY = True # default: False (True enables advanced SSL security features) |
| 46 | +PWNED_VALIDATOR = False # default: True (False disables checking for compromised passwords) |
| 47 | +ALLOWED_HOST = 192.168.0.199 # default: * (Allows all hosts) |
| 48 | +DEBUG = False # default: False (Disable security features, only enable this during development. Defaults to True outside of docker.) |
| 49 | + |
| 50 | +# Email |
| 51 | +EMAIL_USE_TLS = False # default: True |
| 52 | +EMAIL_PORT = 587 # default: None |
| 53 | +EMAIL_HOST = smtp.gmail.com # default: None |
| 54 | +EMAIL_HOST_USER = myself@gmail.com # default: None |
| 55 | +EMAIL_HOST_PASSWORD = dogmemes123 # default: None |
| 56 | +``` |
0 commit comments