Skip to content

Commit

Permalink
refactor: simplify config files removing default values
Browse files Browse the repository at this point in the history
  • Loading branch information
josecelano committed Jun 11, 2024
1 parent f0a5006 commit a3e162c
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 156 deletions.
4 changes: 0 additions & 4 deletions share/default/config/index.container.mysql.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# 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`

log_level = "info"

[database]
Expand Down
4 changes: 0 additions & 4 deletions share/default/config/index.container.sqlite3.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# 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`

log_level = "info"

[database]
Expand Down
4 changes: 0 additions & 4 deletions share/default/config/index.development.sqlite3.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# 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`

log_level = "info"

# Uncomment if you want to enable TSL for development
Expand Down
4 changes: 0 additions & 4 deletions share/default/config/index.private.e2e.container.sqlite3.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# 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`

log_level = "info"

[tracker]
Expand Down
4 changes: 0 additions & 4 deletions share/default/config/index.public.e2e.container.mysql.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# 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`

log_level = "info"

[tracker]
Expand Down
4 changes: 0 additions & 4 deletions share/default/config/index.public.e2e.container.sqlite3.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# 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`

log_level = "info"

[tracker]
Expand Down
37 changes: 0 additions & 37 deletions share/default/config/tracker.container.mysql.toml

This file was deleted.

37 changes: 0 additions & 37 deletions share/default/config/tracker.container.sqlite3.toml

This file was deleted.

27 changes: 0 additions & 27 deletions share/default/config/tracker.private.e2e.container.sqlite3.toml
Original file line number Diff line number Diff line change
@@ -1,37 +1,10 @@
announce_interval = 120
db_driver = "Sqlite3"
db_path = "/var/lib/torrust/tracker/database/e2e_testing_sqlite3.db"
external_ip = "0.0.0.0"
inactive_peer_cleanup_interval = 600
log_level = "info"
max_peer_timeout = 900
min_announce_interval = 120
mode = "private"
on_reverse_proxy = false
persistent_torrent_completed_stat = false
remove_peerless_torrents = true
tracker_usage_statistics = true

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

[[http_trackers]]
bind_address = "0.0.0.0:7070"
enabled = false
ssl_cert_path = "/var/lib/torrust/tracker/tls/localhost.crt"
ssl_enabled = false
ssl_key_path = "/var/lib/torrust/tracker/tls/localhost.key"

[http_api]
bind_address = "0.0.0.0:1212"
enabled = true
ssl_cert_path = "/var/lib/torrust/tracker/tls/localhost.crt"
ssl_enabled = false
ssl_key_path = "/var/lib/torrust/tracker/tls/localhost.key"

[http_api.access_tokens]
admin = "MyAccessToken"

[health_check_api]
bind_address = "127.0.0.1:1313"
31 changes: 0 additions & 31 deletions share/default/config/tracker.public.e2e.container.sqlite3.toml
Original file line number Diff line number Diff line change
@@ -1,37 +1,6 @@
announce_interval = 120
db_driver = "Sqlite3"
db_path = "/var/lib/torrust/tracker/database/e2e_testing_sqlite3.db"
external_ip = "0.0.0.0"
inactive_peer_cleanup_interval = 600
log_level = "info"
max_peer_timeout = 900
min_announce_interval = 120
mode = "public"
on_reverse_proxy = false
persistent_torrent_completed_stat = false
remove_peerless_torrents = true
tracker_usage_statistics = true

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

[[http_trackers]]
bind_address = "0.0.0.0:7070"
enabled = false
ssl_cert_path = "/var/lib/torrust/tracker/tls/localhost.crt"
ssl_enabled = false
ssl_key_path = "/var/lib/torrust/tracker/tls/localhost.key"

[http_api]
bind_address = "0.0.0.0:1212"
enabled = true
ssl_cert_path = "/var/lib/torrust/tracker/tls/localhost.crt"
ssl_enabled = false
ssl_key_path = "/var/lib/torrust/tracker/tls/localhost.key"

[http_api.access_tokens]
admin = "MyAccessToken"

[health_check_api]
bind_address = "127.0.0.1:1313"

0 comments on commit a3e162c

Please sign in to comment.