forked from torrust/torrust-compose
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: [torrust#14] update droplet example
- Loading branch information
1 parent
f9be47c
commit 922f29b
Showing
8 changed files
with
24 additions
and
140 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 |
---|---|---|
@@ -1,47 +1,10 @@ | ||
log_level = "info" | ||
|
||
[website] | ||
name = "Torrust" | ||
|
||
[tracker] | ||
url = "udp://localhost: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 = "sqlite:///var/lib/torrust/index/database/torrust_index_demo.db?mode=rwc" # SQLite | ||
#connect_url = "mysql://root:root_secret_password@mysql:3306/torrust_index_demo" # MySQL | ||
|
||
[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 |
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,35 +1,9 @@ | ||
log_level = "info" | ||
mode = "public" | ||
db_driver = "Sqlite3" | ||
db_path = "/var/lib/torrust/tracker/database/torrust_tracker_demo.db" # SQLite | ||
#db_path = "mysql://root:root_secret_password@mysql:3306/torrust_tracker_demo" # MySQL | ||
announce_interval = 120 | ||
min_announce_interval = 120 | ||
max_peer_timeout = 900 | ||
on_reverse_proxy = false | ||
external_ip = "0.0.0.0" | ||
tracker_usage_statistics = true | ||
persistent_torrent_completed_stat = false | ||
inactive_peer_cleanup_interval = 600 | ||
remove_peerless_torrents = true | ||
|
||
[[udp_trackers]] | ||
enabled = true | ||
bind_address = "0.0.0.0:6969" | ||
|
||
[[http_trackers]] | ||
enabled = false | ||
bind_address = "0.0.0.0:7070" | ||
ssl_enabled = false | ||
ssl_cert_path = "" | ||
ssl_key_path = "" | ||
|
||
[http_api] | ||
enabled = true | ||
bind_address = "0.0.0.0:1212" | ||
ssl_enabled = false | ||
ssl_cert_path = "" | ||
ssl_key_path = "" | ||
|
||
[http_api.access_tokens] | ||
admin = "MyAccessToken" |
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
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
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
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
45 changes: 5 additions & 40 deletions
45
droplet/share/container/default/config/index.prod.container.sqlite3.toml
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,16 @@ | ||
log_level = "info" | ||
|
||
[website] | ||
name = "Torrust" | ||
|
||
# Please override the tracker token setting the | ||
# `TORRUST_INDEX_TRACKER_API_TOKEN` | ||
# environmental variable! | ||
# Please override the tracker token: | ||
# `TORRUST_INDEX_CONFIG_OVERRIDE_TRACKER__TOKEN` | ||
# And the auth screte key: | ||
# `TORRUST_INDEX_CONFIG_OVERRIDE_AUTH__SECRET_KEY` | ||
# environmental variables! | ||
|
||
[tracker] | ||
url = "udp://tracker.torrust-demo.com: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 = "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 |
35 changes: 4 additions & 31 deletions
35
droplet/share/container/default/config/tracker.prod.container.sqlite3.toml
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,41 +1,14 @@ | ||
announce_interval = 300 | ||
db_driver = "Sqlite3" | ||
# Please override the admin token setting the | ||
# `TORRUST_TRACKER_CONFIG_OVERRIDE_HTTP_API__ACCESS_TOKENS__ADMIN` | ||
# environmental variable! | ||
|
||
db_path = "/var/lib/torrust/tracker/database/sqlite3.db" | ||
external_ip = "0.0.0.0" | ||
inactive_peer_cleanup_interval = 600 | ||
log_level = "info" | ||
max_peer_timeout = 900 | ||
min_announce_interval = 300 | ||
mode = "public" | ||
on_reverse_proxy = true | ||
persistent_torrent_completed_stat = true | ||
remove_peerless_torrents = true | ||
tracker_usage_statistics = true | ||
|
||
[[udp_trackers]] | ||
bind_address = "0.0.0.0:6969" | ||
enabled = true | ||
|
||
[[http_trackers]] | ||
bind_address = "0.0.0.0:7070" | ||
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] | ||
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" | ||
|
||
# Please override the admin token setting the | ||
# `TORRUST_TRACKER_CONFIG_OVERRIDE_HTTP_API__ACCESS_TOKENS__ADMIN` | ||
# environmental variable! | ||
|
||
[http_api.access_tokens] | ||
admin = "MyAccessToken" | ||
|
||
[health_check_api] | ||
bind_address = "127.0.0.1:1313" |