Environment Variables
Some env variables are secrets and are marked as secret. See the next section for a definition of a secret env variable.
Database
MARIADB_PORT: MariaDB service port, defaults to3306MARIADB_ROOT_PASSWORD: secret Root password for database.MARIADB_USER: Username of the databaseMARIADB_PASSWORD: secret Password ofMARIADB_USERMARIADB_DATABASE: Name of the databaseMARIADB_HOST: Database host
Api
API_PORT: Port where the backend API listens toMQTT_BROKER_URL: URL of MQTT Broker where the backend API connects to
Grafana
GRAFANA_PORT: Port where Grafana listens toGRAFANA_USER: Grafana usernameGRAFANA_PASSWORD: secret Grafana password
Generating Secure Secrets
Every secret (password) should be a cryptographically strong 32 byte hex string. An example would
be aa19eed475700617f31d41ba4ccc2a57a501e314700f93fbb9d8c4e24b7970ed
If you are on linux you can generate one with the following command:
1 | |
On windows its the following Powershell code:
1 2 3 4 5 | |
Env variables and gitlab
- TODO: write about gitlab variables when a pipeline is setup