Skip to content

Commit

Permalink
fix: [#6] update index configuration
Browse files Browse the repository at this point in the history
To follow breaking changes in the Index config TOML files and env var
names.
  • Loading branch information
josecelano committed Jun 14, 2024
1 parent 1485c4f commit 7120ccb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
6 changes: 3 additions & 3 deletions droplet/.env.production
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ USER_ID=1000

# Index GUI
TORRUST_INDEX_GUI_API_BASE_URL='https://index.torrust-demo.com/api/v1'
NITRO_HOST="0.0.0.0"
NITRO_HOST=0.0.0.0
NITRO_PORT=3000

# Index
TORRUST_INDEX_CONFIG_TOML=
TORRUST_INDEX_CONFIG_OVERRIDE_TRACKER__TOKEN='MyAccessToken'
TORRUST_INDEX_CONFIG_OVERRIDE_AUTH__SECRET_KEY='MyAccessToken'
TORRUST_INDEX_API_CORS_PERMISSIVE=false
TORRUST_INDEX_CONFIG_OVERRIDE_AUTH__SECRET_KEY='MaxVerstappenWC2021'
TORRUST_INDEX_CONFIG_OVERRIDE_TRACKER__TOKEN='MyAccessToken'

# Tracker
TORRUST_TRACKER_CONFIG_TOML=
Expand Down
1 change: 1 addition & 0 deletions droplet/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ services:
- TORRUST_INDEX_DATABASE=${TORRUST_INDEX_DATABASE:-sqlite3}
- TORRUST_INDEX_DATABASE_DRIVER=${TORRUST_INDEX_DATABASE_DRIVER:-sqlite3}
- TORRUST_INDEX_CONFIG_OVERRIDE_TRACKER__TOKEN=${TORRUST_INDEX_CONFIG_OVERRIDE_TRACKER__TOKEN:-MyAccessToken}
- TORRUST_INDEX_CONFIG_OVERRIDE_AUTH__SECRET_KEY=${TORRUST_INDEX_CONFIG_OVERRIDE_AUTH__SECRET_KEY:-MaxVerstappenWC2021}
- TORRUST_INDEX_API_CORS_PERMISSIVE=${TORRUST_INDEX_API_CORS_PERMISSIVE:-true}
networks:
- backend_network
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
# Please override the tracker token:
# `TORRUST_INDEX_CONFIG_OVERRIDE_TRACKER__TOKEN`
# And the auth screte key:
# `TORRUST_INDEX_CONFIG_OVERRIDE_AUTH__SECRET_KEY`
# environmental variables!

[tracker]
url = "udp://tracker.torrust-demo.com:6969"
api_url = "http://tracker:1212"
url = "udp://tracker.torrust-demo.com:6969"

[database]
connect_url = "sqlite:///var/lib/torrust/index/database/sqlite3.db?mode=rwc"

[mail]
server = "mailcatcher"
[mail.smtp]
port = 1025
server = "mailcatcher"

0 comments on commit 7120ccb

Please sign in to comment.