Skip to content

Commit

Permalink
fix: [#22] update tracker and index config files
Browse files Browse the repository at this point in the history
More changes related to the configuration have been merged in the Tracker and Index repos.

We have to update the Tracker and Index configuration files.

Tracker

```toml
[logging]
log_level = "info"

[core]
mode = "public"
```

Index

```toml
[tracker]
mode = "public"
```

Tracker

```toml
version = "2"

[logging]
threshold = "info"

[core]
listed = false
private = false
```

Index

```toml
version = "2"

[logging]
threshold = "info"

[tracker]
listed = false
private = false
```

**NOTICE**: Only changed are shown.
  • Loading branch information
josecelano committed Jul 3, 2024
1 parent 83a0790 commit 3522b19
Show file tree
Hide file tree
Showing 6 changed files with 74 additions and 6 deletions.
12 changes: 12 additions & 0 deletions demo/config-index.local.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
version = "2"

[logging]
#threshold = "off"
#threshold = "error"
#threshold = "warn"
threshold = "info"
#threshold = "debug"
#threshold = "trace"

[tracker]
api_url = "http://tracker:1212"
listed = false
private = false

[database]
connect_url = "sqlite:///var/lib/torrust/index/database/torrust_index_demo.db?mode=rwc" # SQLite
Expand Down
14 changes: 14 additions & 0 deletions demo/config-tracker.local.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
version = "2"

[logging]
#threshold = "off"
#threshold = "error"
#threshold = "warn"
threshold = "info"
#threshold = "debug"
#threshold = "trace"

[core]
listed = false
private = false

[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
Expand Down
16 changes: 12 additions & 4 deletions demo/storage/index/etc/index.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
# Please override the following settings with environmental variable!
# tracker::token -> `TORRUST_INDEX_CONFIG_OVERRIDE_TRACKER__TOKEN`
# auth::secret_key -> `TORRUST_INDEX_CONFIG_OVERRIDE_AUTH__SECRET_KEY`
version = "2"

log_level = "info"
[logging]
#threshold = "off"
#threshold = "error"
#threshold = "warn"
threshold = "info"
#threshold = "debug"
#threshold = "trace"

[tracker]
listed = false
private = false

[database]
connect_url = "sqlite:///var/lib/torrust/index/database/sqlite3.db?mode=rwc"
Expand Down
14 changes: 14 additions & 0 deletions demo/storage/tracker/etc/tracker.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
version = "2"

[logging]
#threshold = "off"
#threshold = "error"
#threshold = "warn"
threshold = "info"
#threshold = "debug"
#threshold = "trace"

[core]
listed = false
private = false

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

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
version = "2"

[logging]
#threshold = "off"
#threshold = "error"
#threshold = "warn"
threshold = "info"
#threshold = "debug"
#threshold = "trace"

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

[database]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
version = "2"

[logging]
log_level = "info"
#threshold = "off"
#threshold = "error"
#threshold = "warn"
threshold = "info"
#threshold = "debug"
#threshold = "trace"

[core]
mode = "public"
listed = false
private = false

[core.tracker_policy]
persistent_torrent_completed_stat = true
Expand Down

0 comments on commit 3522b19

Please sign in to comment.