From 857ca4c0a2a5d930da22d69daef4aeffb29aeb27 Mon Sep 17 00:00:00 2001 From: Jose Celano Date: Wed, 19 Jun 2024 15:17:28 +0100 Subject: [PATCH] fix: [#6] update tracker configuration There were some breaking changes in the tracker configuration. See: https://github.com/torrust/torrust-tracker/issues/878 --- demo/config-tracker.local.toml | 8 ++++---- demo/storage/tracker/etc/tracker.toml | 8 ++++++-- droplet/compose.yaml | 2 +- .../config/tracker.prod.container.sqlite3.toml | 13 +++++-------- 4 files changed, 16 insertions(+), 15 deletions(-) diff --git a/demo/config-tracker.local.toml b/demo/config-tracker.local.toml index c534b5f..7616010 100644 --- a/demo/config-tracker.local.toml +++ b/demo/config-tracker.local.toml @@ -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" diff --git a/demo/storage/tracker/etc/tracker.toml b/demo/storage/tracker/etc/tracker.toml index da82592..474785d 100755 --- a/demo/storage/tracker/etc/tracker.toml +++ b/demo/storage/tracker/etc/tracker.toml @@ -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" diff --git a/droplet/compose.yaml b/droplet/compose.yaml index 61a9ad3..3572098 100644 --- a/droplet/compose.yaml +++ b/droplet/compose.yaml @@ -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 diff --git a/droplet/share/container/default/config/tracker.prod.container.sqlite3.toml b/droplet/share/container/default/config/tracker.prod.container.sqlite3.toml index 62c6b37..30eae5b 100644 --- a/droplet/share/container/default/config/tracker.prod.container.sqlite3.toml +++ b/droplet/share/container/default/config/tracker.prod.container.sqlite3.toml @@ -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"