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

Config overhaul: use an explicit section for metadata #991

Commits on Aug 2, 2024

  1. feat!: [torrust#958] improve metadata in config files

    The metadata section in the configuration file is changed:
    
    TOML:
    
    ```toml
    [metadata]
    app = "torrust-tracker"
    purpose = "configuration"
    schema_version = "2.0.0"
    ```
    
    JSON:
    
    ```json
    {
      "metadata": {
        "app": "torrust-tracker",
        "purpose": "configuration",
        "version": "2.0.0"
      }
    }
    ```
    
    - `app`: the applications this config file is used for.
    - `purpose`: the purpose of the file containing these metadata.
    - `schema_version`: the schema version for the file being parsed.
    josecelano committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    287e484 View commit details
    Browse the repository at this point in the history