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 configuration #20

Closed
josecelano opened this issue Jul 3, 2024 · 0 comments · Fixed by #21
Closed

Update Index configuration #20

josecelano opened this issue Jul 3, 2024 · 0 comments · Fixed by #21
Assignees
Milestone

Comments

@josecelano
Copy link
Member

Relates to: torrust/torrust-index-gui#582

The settings endpoint will change in the Index after merging this PR.

Old

Public settings:

{
    "data": {
        "website_name": "Torrust",
        "tracker_url": "udp://localhost:6969",
        "tracker_mode": "public",
        "email_on_signup": "optional"
    }
}

All settings:

{
    "data": {
        "logging": {
            "log_level": "info"
        },
        "website": {
            "name": "Torrust"
        },
        "tracker": {
            "api_url": "http://localhost:1212/",
            "mode": "public",
            "token": "***",
            "token_valid_seconds": 7257600,
            "url": "udp://localhost:6969"
        },
        "net": {
            "base_url": null,
            "bind_address": "0.0.0.0:3001",
            "tsl": null
        },
        "auth": {
            "email_on_signup": "optional",
            "secret_key": "***",
            "password_constraints": {
                "max_password_length": 64,
                "min_password_length": 6
            }
        },
        "database": {
            "connect_url": "sqlite://data.db?mode=rwc"
        },
        "mail": {
            "email_verification_enabled": false,
            "from": "example@email.com",
            "reply_to": "noreply@email.com",
            "smtp": {
                "port": 25,
                "server": "",
                "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
        }
    }
}

New

Public settings:

{
    "data": {
        "website_name": "Torrust",
        "tracker_url": "udp://localhost:6969",
        "tracker_listed": false,
        "tracker_private": false,
        "email_on_signup": "optional"
    }
}

All settings:

{
    "data": {
        "version": "2",
        "logging": {
            "threshold": "info"
        },
        "website": {
            "name": "Torrust"
        },
        "tracker": {
            "api_url": "http://localhost:1212/",
            "listed": false,
            "private": false,
            "token": "***",
            "token_valid_seconds": 7257600,
            "url": "udp://localhost:6969"
        },
        "net": {
            "base_url": null,
            "bind_address": "0.0.0.0:3001",
            "tsl": null
        },
        "auth": {
            "email_on_signup": "optional",
            "secret_key": "***",
            "password_constraints": {
                "max_password_length": 64,
                "min_password_length": 6
            }
        },
        "database": {
            "connect_url": "sqlite://data.db?mode=rwc"
        },
        "mail": {
            "email_verification_enabled": false,
            "from": "example@email.com",
            "reply_to": "noreply@email.com",
            "smtp": {
                "port": 25,
                "server": "",
                "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 this to the v3.0.0 milestone Jul 3, 2024
@josecelano josecelano self-assigned this Jul 3, 2024
josecelano added a commit to josecelano/torrust-index-types-lib that referenced this issue Jul 3, 2024
@josecelano josecelano linked a pull request Jul 3, 2024 that will close this issue
josecelano added a commit that referenced this issue Jul 3, 2024
369e003 fix: [#20] udpate index settings (Jose Celano)

Pull request description:

  Udpate index settings.

ACKs for top commit:
  josecelano:
    ACK 369e003

Tree-SHA512: b367c5c167b1c1ff5f7be4d5b8ff5dec5a28b641faaa3900f96644f5bd1e37e6e00945bdad02606906c5a1a045799793a2c2d6a5464418a4745546b7bafb3429
josecelano added a commit to torrust/torrust-index-gui that referenced this issue Jul 3, 2024
59a87c7 fix: [#581] update references to udpated index settings (Jose Celano)
661d6f7 fix: [#581] update Index config files (Jose Celano)

Pull request description:

  The Torrust Index config file has been updated, and some API endpoints exposing the configuration have also changed. We must apply those changes here.

  - [x] Update config files
  - [x] torrust/torrust-index-types-lib#20 (Update types lib)
  - [x] Update code referencing changes in the API response

  ### Old version

  ```toml
  [logging]
  log_level = "info"

  [tracker]
  mode = "public"
  ```

  ### New version

  ```toml
  version = "2"

  [logging]
  threshold = "info"

  [tracker]
  private = false
  listed = false
  ```

ACKs for top commit:
  josecelano:
    ACK 59a87c7

Tree-SHA512: 4f07659cf7378b10c6838bef3c1a6ffce81177ca3e66c6dd48ff85256ec6030ed95a65f12809dba0ae254c0341d17ec606cd09912fb755bed38162f64700ae29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant