Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Index TOML config files #574

Closed
josecelano opened this issue Jun 13, 2024 · 2 comments · Fixed by #575
Closed

Update Index TOML config files #574

josecelano opened this issue Jun 13, 2024 · 2 comments · Fixed by #575
Assignees
Labels
Dependencies Related to Dependencies
Milestone

Comments

@josecelano
Copy link
Member

josecelano commented Jun 13, 2024

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
@josecelano josecelano added the Dependencies Related to Dependencies label Jun 13, 2024
@josecelano josecelano added this to the v3.0.0 milestone Jun 13, 2024
@josecelano josecelano self-assigned this Jun 13, 2024
josecelano added a commit to josecelano/torrust-index-gui that referenced this issue Jun 13, 2024
The Index has introduced some breaking changes in the TOML config files.
@josecelano josecelano linked a pull request Jun 13, 2024 that will close this issue
josecelano added a commit to josecelano/torrust-index-gui that referenced this issue Jun 13, 2024
The Index has introduced some breaking changes in the TOML config files.
josecelano added a commit that referenced this issue Jun 13, 2024
d2343f6 feat: [#574] update Index config files (Jose Celano)

Pull request description:

  The Index has introduced some [breaking changes in the TOML config files](torrust/torrust-index#631).

ACKs for top commit:
  josecelano:
    ACK d2343f6

Tree-SHA512: f29fcbb1ef36047e44f27295066c1564e86009b343f76105c561bd68affc2e297b91b244269d9842242e744dff769e6eafa796c922ca114d4e237419335e8dde
@josecelano
Copy link
Member Author

Types have also been updated in torrust/torrust-index-types-lib#18. So we need to update the dependency here.

@josecelano josecelano reopened this Jun 14, 2024
@josecelano
Copy link
Member Author

Types have also been updated in torrust/torrust-index-types-lib#18. So we need to update the dependency here.

Done via #576

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dependencies Related to Dependencies
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant