Skip to content

Update Index configuration #22

@josecelano

Description

@josecelano

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
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions