Skip to content

Commit

Permalink
fix: [torrust#6] update tracker configuration
Browse files Browse the repository at this point in the history
There were some breaking changes in the tracker configuration.

See: torrust/torrust-tracker#878
  • Loading branch information
josecelano committed Jun 19, 2024
1 parent 750e6b9 commit 857ca4c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 15 deletions.
8 changes: 4 additions & 4 deletions demo/config-tracker.local.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
db_path = "/var/lib/torrust/tracker/database/torrust_tracker_demo.db" # SQLite
#db_path = "mysql://root:root_secret_password@mysql:3306/torrust_tracker_demo" # MySQL
[core.database]
path = "/var/lib/torrust/tracker/database/torrust_tracker_demo.db" # SQLite
#path = "mysql://root:root_secret_password@mysql:3306/torrust_tracker_demo" # MySQL

[[udp_trackers]]
enabled = true
bind_address = "0.0.0.0:6969"

[http_api]
enabled = true
bind_address = "0.0.0.0:1212"
8 changes: 6 additions & 2 deletions demo/storage/tracker/etc/tracker.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
db_path = "/var/lib/torrust/tracker/database/sqlite3.db"
[core.database]
path = "/var/lib/torrust/tracker/database/sqlite3.db"

[[http_trackers]]
bind_address = "0.0.0.0:7070"

[http_trackers.tsl_config]
ssl_cert_path = "/var/lib/torrust/tracker/tls/localhost.crt"
ssl_key_path = "/var/lib/torrust/tracker/tls/localhost.key"

[http_api]
[http_api.tsl_config]
ssl_cert_path = "/var/lib/torrust/tracker/tls/localhost.crt"
ssl_key_path = "/var/lib/torrust/tracker/tls/localhost.key"
2 changes: 1 addition & 1 deletion droplet/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ services:
environment:
- USER_ID=${USER_ID}
- TORRUST_TRACKER_DATABASE=${TORRUST_TRACKER_DATABASE:-sqlite3}
- TORRUST_TRACKER_CONFIG_OVERRIDE_DB_DRIVER=${TORRUST_TRACKER_CONFIG_OVERRIDE_DB_DRIVER:-Sqlite3}
- TORRUST_TRACKER_CONFIG_OVERRIDE_CORE__DATABASE__DRIVER=${TORRUST_TRACKER_CONFIG_OVERRIDE_CORE__DATABASE__DRIVER:-Sqlite3}
- TORRUST_TRACKER_CONFIG_OVERRIDE_HTTP_API__ACCESS_TOKENS__ADMIN=${TORRUST_TRACKER_CONFIG_OVERRIDE_HTTP_API__ACCESS_TOKENS__ADMIN:-MyAccessToken}
networks:
- backend_network
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
# Please override the admin token setting the
# `TORRUST_TRACKER_CONFIG_OVERRIDE_HTTP_API__ACCESS_TOKENS__ADMIN`
# environmental variable!

db_path = "/var/lib/torrust/tracker/database/sqlite3.db"
[core.database]
path = "/var/lib/torrust/tracker/database/sqlite3.db"

[[udp_trackers]]
enabled = true
bind_address = "0.0.0.0:6969"

[[http_trackers]]
enabled = true
bind_address = "0.0.0.0:7070"

[http_api]
enabled = true
bind_address = "0.0.0.0:1212"

0 comments on commit 857ca4c

Please sign in to comment.