Skip to content

Commit 65c0a6e

Browse files
committed
Merge #21: Update tracker configuration
857ca4c fix: [#6] update tracker configuration (Jose Celano) Pull request description: There were some breaking changes in the tracker configuration. See: torrust/torrust-tracker#878 ACKs for top commit: josecelano: ACK 857ca4c Tree-SHA512: 46dd732fdbfd6bf465593da75ed0fe9f4029ee00021363aea84df5737a358653a3dd2dca7d09468eb3d5589cd16c50e4be4da8700c7427ec0c899105b84115f8
2 parents 750e6b9 + 857ca4c commit 65c0a6e

File tree

4 files changed

+16
-15
lines changed

4 files changed

+16
-15
lines changed

demo/config-tracker.local.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
db_path = "/var/lib/torrust/tracker/database/torrust_tracker_demo.db" # SQLite
2-
#db_path = "mysql://root:root_secret_password@mysql:3306/torrust_tracker_demo" # MySQL
1+
[core.database]
2+
path = "/var/lib/torrust/tracker/database/torrust_tracker_demo.db" # SQLite
3+
#path = "mysql://root:root_secret_password@mysql:3306/torrust_tracker_demo" # MySQL
34

45
[[udp_trackers]]
5-
enabled = true
6+
bind_address = "0.0.0.0:6969"
67

78
[http_api]
8-
enabled = true
99
bind_address = "0.0.0.0:1212"

demo/storage/tracker/etc/tracker.toml

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
db_path = "/var/lib/torrust/tracker/database/sqlite3.db"
1+
[core.database]
2+
path = "/var/lib/torrust/tracker/database/sqlite3.db"
23

34
[[http_trackers]]
5+
bind_address = "0.0.0.0:7070"
6+
7+
[http_trackers.tsl_config]
48
ssl_cert_path = "/var/lib/torrust/tracker/tls/localhost.crt"
59
ssl_key_path = "/var/lib/torrust/tracker/tls/localhost.key"
610

7-
[http_api]
11+
[http_api.tsl_config]
812
ssl_cert_path = "/var/lib/torrust/tracker/tls/localhost.crt"
913
ssl_key_path = "/var/lib/torrust/tracker/tls/localhost.key"

droplet/compose.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ services:
9999
environment:
100100
- USER_ID=${USER_ID}
101101
- TORRUST_TRACKER_DATABASE=${TORRUST_TRACKER_DATABASE:-sqlite3}
102-
- TORRUST_TRACKER_CONFIG_OVERRIDE_DB_DRIVER=${TORRUST_TRACKER_CONFIG_OVERRIDE_DB_DRIVER:-Sqlite3}
102+
- TORRUST_TRACKER_CONFIG_OVERRIDE_CORE__DATABASE__DRIVER=${TORRUST_TRACKER_CONFIG_OVERRIDE_CORE__DATABASE__DRIVER:-Sqlite3}
103103
- TORRUST_TRACKER_CONFIG_OVERRIDE_HTTP_API__ACCESS_TOKENS__ADMIN=${TORRUST_TRACKER_CONFIG_OVERRIDE_HTTP_API__ACCESS_TOKENS__ADMIN:-MyAccessToken}
104104
networks:
105105
- backend_network
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1-
# Please override the admin token setting the
2-
# `TORRUST_TRACKER_CONFIG_OVERRIDE_HTTP_API__ACCESS_TOKENS__ADMIN`
3-
# environmental variable!
4-
5-
db_path = "/var/lib/torrust/tracker/database/sqlite3.db"
1+
[core.database]
2+
path = "/var/lib/torrust/tracker/database/sqlite3.db"
63

74
[[udp_trackers]]
8-
enabled = true
5+
bind_address = "0.0.0.0:6969"
96

107
[[http_trackers]]
11-
enabled = true
8+
bind_address = "0.0.0.0:7070"
129

1310
[http_api]
14-
enabled = true
11+
bind_address = "0.0.0.0:1212"

0 commit comments

Comments
 (0)