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
Copy file name to clipboardexpand all lines: docs/containers.md
+7-7
Original file line number
Diff line number
Diff line change
@@ -147,11 +147,11 @@ Environmental variables are loaded through the `--env`, in the format `--env VAR
147
147
148
148
The following environmental variables can be set:
149
149
150
-
-`TORRUST_INDEX_PATH_CONFIG` - The in-container path to the index configuration file, (default: `"/etc/torrust/index/index.toml"`).
151
-
-`TORRUST_INDEX_TRACKER_API_TOKEN` - Override of the admin token. If set, this value overrides any value set in the config.
152
-
-`TORRUST_INDEX_AUTH_SECRET_KEY` - Override of the auth secret key. If set, this value overrides any value set in the config.
150
+
-`TORRUST_INDEX_CONFIG_TOML_PATH` - The in-container path to the index configuration file, (default: `"/etc/torrust/index/index.toml"`).
151
+
-`TORRUST_INDEX_CONFIG_OVERRIDE_TRACKER__TOKEN` - Override of the admin token. If set, this value overrides any value set in the config.
152
+
-`TORRUST_INDEX_CONFIG_OVERRIDE_AUTH__SECRET_KEY` - Override of the auth secret key. If set, this value overrides any value set in the config.
153
153
-`TORRUST_INDEX_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.
154
-
-`TORRUST_INDEX_CONFIG` - Load config from this environmental variable instead from a file, (i.e: `TORRUST_INDEX_CONFIG=$(cat index-index.toml)`).
154
+
-`TORRUST_INDEX_CONFIG_TOML` - Load config from this environmental variable instead from a file, (i.e: `TORRUST_INDEX_CONFIG_TOML=$(cat index-index.toml)`).
155
155
-`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`).
156
156
-`API_PORT` - The port for the index API. This should match the port used in the configuration, (default `3001`).
Copy file name to clipboardexpand all lines: src/lib.rs
+3-3
Original file line number
Diff line number
Diff line change
@@ -215,18 +215,18 @@
215
215
//!
216
216
//! For more information about configuration you can visit the documentation for the [`config`]) module.
217
217
//!
218
-
//! Alternatively to the `config.toml` file you can use one environment variable `TORRUST_INDEX_CONFIG` to pass the configuration to the tracker:
218
+
//! Alternatively to the `config.toml` file you can use one environment variable `TORRUST_INDEX_CONFIG_TOML` to pass the configuration to the tracker:
219
219
//!
220
220
//! ```text
221
-
//! TORRUST_INDEX_CONFIG=$(cat config.toml)
221
+
//! TORRUST_INDEX_CONFIG_TOML=$(cat config.toml)
222
222
//! cargo run
223
223
//! ```
224
224
//!
225
225
//! In the previous example you are just setting the env var with the contents of the `config.toml` file.
226
226
//!
227
227
//! The env var contains the same data as the `config.toml`. It's particularly useful in you are [running the index with docker](https://github.com/torrust/torrust-index/tree/develop/docker).
228
228
//!
229
-
//! > **NOTICE**: The `TORRUST_INDEX_CONFIG` env var has priority over the `config.toml` file.
229
+
//! > **NOTICE**: The `TORRUST_INDEX_CONFIG_TOML` env var has priority over the `config.toml` file.
230
230
//!
231
231
//! > **NOTICE**: You can also change the location for the configuration file with the `TORRUST_INDEX_CONFIG_PATH` env var.
0 commit comments