Giter VIP home page Giter VIP logo

torrust-compose's Issues

Remove unused config env vars from droplet example

See: #4 (comment)

Tracker:

  • TORRUST_TRACKER_CONFIG
  • TORRUST_TRACKER_PATH_CONFIG

Index:

  • TORRUST_INDEX_CONFIG
  • TORRUST_INDEX_PATH_CONFIG

I replaced TORRUST_INDEX_CONFIG_PATH with TORRUST_INDEX_PATH_CONFIG to follow your latest changes.

In this case those variables are not being used in the compose.yaml file. I'm using the default location for the config files:

  • TORRUST_TRACKER_PATH_CONFIG=/etc/torrust/tracker/tracker.toml
  • TORRUST_INDEX_PATH_CONFIG=/etc/torrust/index/index.toml

Config env vars are set at runtime:

We have to remove TORRUST_INDEX_CONFIG_PATH and TORRUST_TRACKER_CONFIG_PATH from all bash scripts.

Originally posted by @josecelano in #4 (comment)

Update Tracker and Index configuration

Relates to:

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.

Old config files

Tracker

[logging]
log_level = "info"

[core]
mode = "public"

Index

[tracker]
mode = "public"

New config files

Tracker

version = "2"

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

[core]
listed = false
private = false

Index

version = "2"

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

[tracker]
listed = false
private = false

NOTICE: Only changed are shown.

Udate Index TOML config file

Relates to: torrust/torrust-index#670

These two config option in the Index TOML config file have been removed:

[auth]
email_on_signup = "optional"

[mail]
email_verification_enabled = false

We need to replace them with:

[registration]
[registration.email]

Update Index TOML config files

Relates to: torrust/torrust-index#631

After merging this Index PR, some breaking changes will be introduced in the Index config files.

We have to migrate the Index config files to the new version.

Old toml version

log_level = "info"

[website]
name = "Torrust"

[tracker]
api_url = "http://localhost:1212"
mode = "Public"
token = "MyAccessToken"
token_valid_seconds = 7257600
url = "udp://localhost:6969"

[net]
port = 3001

# 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

New toml version

[logging]
log_level = "info"

[website]
name = "Torrust"

[tracker]
api_url = "http://localhost:1212"
mode = "public"
token = "MyAccessToken"
token_valid_seconds = 7257600
url = "udp://localhost:6969"

[net]
base_url = "http://localhost"
bind_address = "0.0.0.0:3001"

# 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"
secret_key = "MaxVerstappenWC2021"

[auth.password_constraints]
max_password_length = 64
min_password_length = 6

[database]
connect_url = "sqlite://data.db?mode=rwc"

[mail]
email_verification_enabled = false
from = "[email protected]"
reply_to = "[email protected]"

[mail.smtp]
port = 25
server = ""

[mail.smtp.credentials]
password = ""
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

Compatibility Issues on MacBooks with M1/M2/M3 Chips: Missing Docker Images for Mac Platform

Malfunctions due to the use of Macbook with Mac chips, this is due to the non-existence of images that are for Mac.
Chip: Apple M3 Max
Mac version: 14.4.1
Error while running "./bin/start.sh"

./bin/start.sh
[+] Running 3/5
 ⠙ mailcatcher Pulling                                                                                                                          2.1s 
 ✘ idx-fron Error      context canceled                                                                                                         2.1s 
 ✘ mysql Error         context canceled                                                                                                         2.1s 
 ⠙ tracker Pulling                                                                                                                              2.1s 
 ✘ idx-back Error      context canceled                                                                                                         2.1s 
no matching manifest for linux/arm64/v8 in the manifest list entries

Update database driver value in Tracker compose.yml

Values for database driver are now lowercase: sqlite3

Replace:

TORRUST_TRACKER_CONFIG_OVERRIDE_CORE__DATABASE__DRIVER=${TORRUST_TRACKER_CONFIG_OVERRIDE_CORE__DATABASE__DRIVER:-Sqlite3}

With:

TORRUST_TRACKER_CONFIG_OVERRIDE_CORE__DATABASE__DRIVER=${TORRUST_TRACKER_CONFIG_OVERRIDE_CORE__DATABASE__DRIVER:-sqlite3}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.