-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: [#603] remove default values from config toml templates
Not it's possible to specify only values when you wan to overrride default values.
- Loading branch information
1 parent
56a8c08
commit 5725d7d
Showing
5 changed files
with
14 additions
and
204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,48 +4,9 @@ | |
|
||
log_level = "info" | ||
|
||
[website] | ||
name = "Torrust" | ||
|
||
[tracker] | ||
url = "udp://tracker:6969" | ||
mode = "Public" | ||
api_url = "http://tracker:1212" | ||
token = "MyAccessToken" | ||
token_valid_seconds = 7257600 | ||
|
||
[net] | ||
port = 3001 | ||
|
||
[auth] | ||
email_on_signup = "Optional" | ||
min_password_length = 6 | ||
max_password_length = 64 | ||
secret_key = "MaxVerstappenWC2021" | ||
|
||
[database] | ||
connect_url = "mysql://root:root_secret_password@mysql:3306/torrust_index" | ||
|
||
[mail] | ||
email_verification_enabled = false | ||
from = "[email protected]" | ||
reply_to = "[email protected]" | ||
username = "" | ||
password = "" | ||
server = "mailcatcher" | ||
port = 1025 | ||
|
||
[image_cache] | ||
max_request_timeout_ms = 1000 | ||
capacity = 128000000 | ||
entry_size_limit = 4000000 | ||
user_quota_period_seconds = 3600 | ||
user_quota_bytes = 64000000 | ||
|
||
[api] | ||
default_torrent_page_size = 10 | ||
max_torrent_page_size = 30 | ||
|
||
[tracker_statistics_importer] | ||
torrent_info_update_interval = 3600 | ||
port = 3002 | ||
server = "mailcatcher" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,12 @@ | ||
log_level = "info" | ||
|
||
[website] | ||
name = "Torrust" | ||
|
||
# Please override the tracker token setting the | ||
# `TORRUST_INDEX_CONFIG_OVERRIDE_TRACKER__TOKEN` | ||
# environmental variable! | ||
# 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` | ||
|
||
[tracker] | ||
url = "udp://tracker:6969" | ||
mode = "Public" | ||
api_url = "http://tracker:1212" | ||
token = "MyAccessToken" | ||
token_valid_seconds = 7257600 | ||
|
||
[net] | ||
port = 3001 | ||
|
||
[auth] | ||
email_on_signup = "Optional" | ||
min_password_length = 6 | ||
max_password_length = 64 | ||
secret_key = "MaxVerstappenWC2021" | ||
log_level = "info" | ||
|
||
[database] | ||
connect_url = "sqlite:///var/lib/torrust/index/database/sqlite3.db?mode=rwc" | ||
|
||
[mail] | ||
email_verification_enabled = false | ||
from = "[email protected]" | ||
reply_to = "[email protected]" | ||
username = "" | ||
password = "" | ||
server = "mailcatcher" | ||
port = 1025 | ||
|
||
[image_cache] | ||
max_request_timeout_ms = 1000 | ||
capacity = 128000000 | ||
entry_size_limit = 4000000 | ||
user_quota_period_seconds = 3600 | ||
user_quota_bytes = 64000000 | ||
|
||
[api] | ||
default_torrent_page_size = 10 | ||
max_torrent_page_size = 30 | ||
|
||
[tracker_statistics_importer] | ||
torrent_info_update_interval = 3600 | ||
port = 3002 | ||
server = "mailcatcher" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,10 @@ | ||
log_level = "info" | ||
|
||
[website] | ||
name = "Torrust" | ||
|
||
[tracker] | ||
api_url = "http://localhost:1212/" | ||
mode = "Public" | ||
token = "MyAccessToken" | ||
token_valid_seconds = 7257600 | ||
url = "udp://localhost:6969" | ||
# 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` | ||
|
||
[net] | ||
port = 3001 | ||
log_level = "info" | ||
|
||
# Uncomment if you want to enable TSL for development | ||
#[net.tsl] | ||
#ssl_cert_path = "./storage/index/lib/tls/localhost.crt" | ||
#ssl_key_path = "./storage/index/lib/tls/localhost.key" | ||
|
||
[auth] | ||
email_on_signup = "Optional" | ||
max_password_length = 64 | ||
min_password_length = 6 | ||
secret_key = "MaxVerstappenWC2021" | ||
|
||
[database] | ||
connect_url = "sqlite://data.db?mode=rwc" | ||
|
||
[mail] | ||
email_verification_enabled = false | ||
from = "[email protected]" | ||
password = "" | ||
port = 25 | ||
reply_to = "[email protected]" | ||
server = "" | ||
username = "" | ||
|
||
[image_cache] | ||
capacity = 128000000 | ||
entry_size_limit = 4000000 | ||
max_request_timeout_ms = 1000 | ||
user_quota_bytes = 64000000 | ||
user_quota_period_seconds = 3600 | ||
|
||
[api] | ||
default_torrent_page_size = 10 | ||
max_torrent_page_size = 30 | ||
|
||
[tracker_statistics_importer] | ||
port = 3002 | ||
torrent_info_update_interval = 3600 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,48 +4,13 @@ | |
|
||
log_level = "info" | ||
|
||
[website] | ||
name = "Torrust" | ||
|
||
[tracker] | ||
url = "udp://tracker:6969" | ||
mode = "Public" | ||
api_url = "http://tracker:1212" | ||
token = "MyAccessToken" | ||
token_valid_seconds = 7257600 | ||
|
||
[net] | ||
port = 3001 | ||
|
||
[auth] | ||
email_on_signup = "Optional" | ||
min_password_length = 6 | ||
max_password_length = 64 | ||
secret_key = "MaxVerstappenWC2021" | ||
url = "udp://tracker:6969" | ||
|
||
[database] | ||
connect_url = "mysql://root:root_secret_password@mysql:3306/torrust_index_e2e_testing" | ||
|
||
[mail] | ||
email_verification_enabled = false | ||
from = "[email protected]" | ||
reply_to = "[email protected]" | ||
username = "" | ||
password = "" | ||
server = "mailcatcher" | ||
port = 1025 | ||
|
||
[image_cache] | ||
max_request_timeout_ms = 1000 | ||
capacity = 128000000 | ||
entry_size_limit = 4000000 | ||
user_quota_period_seconds = 3600 | ||
user_quota_bytes = 64000000 | ||
|
||
[api] | ||
default_torrent_page_size = 10 | ||
max_torrent_page_size = 30 | ||
|
||
[tracker_statistics_importer] | ||
torrent_info_update_interval = 3600 | ||
port = 3002 | ||
server = "mailcatcher" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,48 +4,13 @@ | |
|
||
log_level = "info" | ||
|
||
[website] | ||
name = "Torrust" | ||
|
||
[tracker] | ||
url = "udp://tracker:6969" | ||
mode = "Public" | ||
api_url = "http://tracker:1212" | ||
token = "MyAccessToken" | ||
token_valid_seconds = 7257600 | ||
|
||
[net] | ||
port = 3001 | ||
|
||
[auth] | ||
email_on_signup = "Optional" | ||
min_password_length = 6 | ||
max_password_length = 64 | ||
secret_key = "MaxVerstappenWC2021" | ||
url = "udp://tracker:6969" | ||
|
||
[database] | ||
connect_url = "sqlite:///var/lib/torrust/index/database/e2e_testing_sqlite3.db?mode=rwc" | ||
|
||
[mail] | ||
email_verification_enabled = false | ||
from = "[email protected]" | ||
reply_to = "[email protected]" | ||
username = "" | ||
password = "" | ||
server = "mailcatcher" | ||
port = 1025 | ||
|
||
[image_cache] | ||
max_request_timeout_ms = 1000 | ||
capacity = 128000000 | ||
entry_size_limit = 4000000 | ||
user_quota_period_seconds = 3600 | ||
user_quota_bytes = 64000000 | ||
|
||
[api] | ||
default_torrent_page_size = 10 | ||
max_torrent_page_size = 30 | ||
|
||
[tracker_statistics_importer] | ||
torrent_info_update_interval = 3600 | ||
port = 3002 | ||
server = "mailcatcher" |