Commit ddfbde3
committed
feat: the configuration can be serialized as JSON
We will print to logs the final configuration used to run the tracker (after Figment processes
all sources):
```output
Loading extra configuration from file: `storage/tracker/etc/tracker.toml` ...
2024-07-01T15:29:09.785334Z INFO torrust_tracker::bootstrap::logging: Logging initialized
2024-07-01T15:29:09.785862Z INFO torrust_tracker::bootstrap::app: Configuration:
{
"logging": {
"log_level": "info"
},
"core": {
"announce_policy": {
"interval": 120,
"interval_min": 120
},
"database": {
"driver": "Sqlite3",
"path": "./storage/tracker/lib/database/sqlite3.db"
},
"inactive_peer_cleanup_interval": 600,
"listed": false,
"net": {
"external_ip": "0.0.0.0",
"on_reverse_proxy": false
},
"private": true,
"tracker_policy": {
"max_peer_timeout": 900,
"persistent_torrent_completed_stat": false,
"remove_peerless_torrents": true
},
"tracker_usage_statistics": true
},
"udp_trackers": null,
"http_trackers": null,
"http_api": null,
"health_check_api": {
"bind_address": "127.0.0.1:1313"
}
}
2024-07-01T15:29:09.785879Z WARN torrust_tracker::app: No services enabled in configuration
2024-07-01T15:29:09.785920Z INFO torrust_tracker::app: No UDP blocks in configuration
2024-07-01T15:29:09.785923Z INFO torrust_tracker::app: No HTTP blocks in configuration
2024-07-01T15:29:09.785924Z INFO torrust_tracker::app: No API block in configuration
2024-07-01T15:29:09.785941Z INFO HEALTH CHECK API: Starting on: http://127.0.0.1:1313
2024-07-01T15:29:09.786035Z INFO HEALTH CHECK API: Started on: http://127.0.0.1:1313
```1 parent 46c3263 commit ddfbde3
2 files changed
Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
0 commit comments