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 #22

Closed
josecelano opened this issue Aug 5, 2024 · 1 comment
Closed

Update Index configuration #22

josecelano opened this issue Aug 5, 2024 · 1 comment
Assignees
Milestone

Comments

@josecelano
Copy link
Member

josecelano commented Aug 5, 2024

Relates to:

The settings endpoint has changed.

  • metadata key was added.
  • version key was moved to metadata.schema_version.
  • auth.secret_key was renamed to auth.user_claim_token_pepper

Current settings:

{
  "metadata": {
    "app": "torrust-index",
    "purpose": "configuration",
    "schema_version": "2.0.0"
  },
  "logging": {
    "threshold": "info"
  },
  "website": {
    "name": "Torrust",
    "demo": null,
    "terms": {
      "page": {
        "title": "Usage Policies and Content Restrictions",
        "content": "\n# Usage Policies and Content Restrictions\n\nOur software is designed to support the distribution of legal, authorized content only. Users may only upload or share files that fall under the following categories:\n\n- **Open-Source Licenses:** Content licensed under recognized open-source licenses, allowing for free distribution and modification.\n- **Creative Commons Licenses:** Content released under Creative Commons licenses that permit sharing and distribution.\n- **Public Domain:** Content that is free of copyright restrictions and available for public use.\n\n**Prohibited Content:** Any content that infringes copyright, is subject to copyright protection, or is illegal under applicable laws is strictly prohibited. This includes but is not limited to copyrighted movies, music, software, books, and any other media.\n\n**Enforcement:** We reserve the right to remove any content that does not comply with these policies without notice. We may also take additional steps, including reporting violations to the relevant authorities, if necessary.\n\n"
      },
      "upload": {
        "content_upload_agreement": "I confirm that the content I am uploading is authorized, and I have read and agree to the terms."
      }
    }
  },
  "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": {
    "user_claim_token_pepper": "***",
    "password_constraints": {
      "max_password_length": 64,
      "min_password_length": 6
    }
  },
  "database": {
    "connect_url": "sqlite://data.db?mode=rwc"
  },
  "mail": {
    "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
  },
  "registration": {
    "email": {
      "required": false,
      "verification_required": false
    }
  },
  "tracker_statistics_importer": {
    "port": 3002,
    "torrent_info_update_interval": 3600
  },
  "unstable": null
}
@josecelano josecelano self-assigned this Aug 5, 2024
@josecelano josecelano added this to the v3.0.0 milestone Aug 5, 2024
josecelano added a commit to josecelano/torrust-index-types-lib that referenced this issue Aug 5, 2024
josecelano added a commit to josecelano/torrust-index-types-lib that referenced this issue Aug 5, 2024
josecelano added a commit that referenced this issue Aug 5, 2024
8a9a70c feat: release 1.0.0-alpha.7 (Jose Celano)
81c2551 fix: [#22] update settings endpoint (Jose Celano)

Pull request description:

  Update settings endpoint.

ACKs for top commit:
  josecelano:
    ACK 8a9a70c

Tree-SHA512: 2cfa1119d5126b5a470c22221eef9e14b8cb9d672d097c064bfd0376fb92e9961502e531e7d5d73fd4910de9e72eecbd9ea749843a1b90835e684454934d7b03
@josecelano
Copy link
Member Author

This was already done.

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

No branches or pull requests

1 participant