You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge torrust#953: Config overhaul: lowercase for DatabaseDriver
ca348a8 chore: remove unused dependency (Jose Celano)
9d72f51 feat: [torrust#950] use lowercase for database driver values in configuration (Jose Celano)
d970bb8 refactor: [torrust#950] rename DatabaseDriver to Driver (Jose Celano)
954295a refactor: [torrust#950] move DatabaseDriver to databases mod (Jose Celano)
9be9638 refactor: [torrust#950] decouple database driver enum (Jose Celano)
Pull request description:
Use lowercase for database driver values in the configuration:
```toml
[core.database]
driver = "sqlite3"
#driver = "MySQL"
```
Instead of:
```toml
[core.database]
driver = "Sqlite3"
#driver = "MySql"
```
We are normalizing all enum variants in the configuration to lowercase.
It also decouples the internal database driver enum from the enum used in the configuration.
ACKs for top commit:
josecelano:
ACK ca348a8
Tree-SHA512: 499ed0b628e385f7927d2bea50334c68eece6fe2e6b0170bf372e3db7d88837fb908fdbf0e94d7f7144141a1d985732b21694515e5551155bd8d7cbe9e58bb15
Copy file name to clipboardexpand all lines: docs/containers.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -149,7 +149,7 @@ The following environmental variables can be set:
149
149
150
150
-`TORRUST_TRACKER_CONFIG_TOML_PATH` - The in-container path to the tracker configuration file, (default: `"/etc/torrust/tracker/tracker.toml"`).
151
151
-`TORRUST_TRACKER_CONFIG_OVERRIDE_HTTP_API__ACCESS_TOKENS__ADMIN` - Override of the admin token. If set, this value overrides any value set in the config.
152
-
-`TORRUST_TRACKER_CONFIG_OVERRIDE_CORE__DATABASE__DRIVER` - The database type used for the container, (options: `Sqlite3`, `MySQL`, default `Sqlite3`). Please Note: This dose not override the database configuration within the `.toml` config file.
152
+
-`TORRUST_TRACKER_CONFIG_OVERRIDE_CORE__DATABASE__DRIVER` - The database type used for the container, (options: `sqlite3`, `mysql`, default `sqlite3`). Please Note: This dose not override the database configuration within the `.toml` config file.
153
153
-`TORRUST_TRACKER_CONFIG_TOML` - Load config from this environmental variable instead from a file, (i.e: `TORRUST_TRACKER_CONFIG_TOML=$(cat tracker-tracker.toml)`).
154
154
-`USER_ID` - The user id for the runtime crated `torrust` user. Please Note: This user id should match the ownership of the host-mapped volumes, (default `1000`).
155
155
-`UDP_PORT` - The port for the UDP tracker. This should match the port used in the configuration, (default `6969`).
@@ -244,7 +244,7 @@ The docker-compose configuration includes the MySQL service configuration. If yo
0 commit comments