New example config for a dropplet#4
Merged
josecelano merged 1 commit intotorrust:mainfrom Dec 14, 2023
Merged
Conversation
25fee4f to
7cb8434
Compare
17b8f7b to
e1c21a3
Compare
e1c21a3 to
c989795
Compare
Member
Author
|
ACK c989795 |
da2ce7
reviewed
Dec 14, 2023
| @@ -0,0 +1,7 @@ | |||
| #!/bin/bash | |||
|
|
|||
| TORRUST_INDEX_CONFIG_PATH=$(cat ./storage/index/etc/index.toml) \ | |||
There was a problem hiding this comment.
This the _PATH variable, but we place the config directly on it here...
Member
Author
There was a problem hiding this comment.
Good catch @da2ce7! In fact, it's working because that's the old name. New names are:
Tracker:
TORRUST_TRACKER_CONFIGTORRUST_TRACKER_PATH_CONFIG
Index:
TORRUST_INDEX_CONFIGTORRUST_INDEX_PATH_CONFIG
I replaced TORRUST_INDEX_CONFIG_PATH with TORRUST_INDEX_PATH_CONFIG to follow your latest changes.
In this case those variables are not being used in the compose.yaml file. I'm using the default location for the config files:
TORRUST_TRACKER_PATH_CONFIG=/etc/torrust/tracker/tracker.tomlTORRUST_INDEX_PATH_CONFIG=/etc/torrust/index/index.toml
Config env vars are set at runtime:
- Tracker: https://github.com/torrust/torrust-tracker/blob/develop/share/container/entry_script_sh#L54
- Index: https://github.com/torrust/torrust-index/blob/develop/share/container/entry_script_sh#L54
We have to remove TORRUST_INDEX_CONFIG_PATH and TORRUST_TRACKER_CONFIG_PATH from all bash scripts.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Example production compose configuration to run Torrust on a Digital Ocean droplet with: