Skip to content

Update Index configuration #20

Closed
@josecelano

Description

@josecelano

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": "[email protected]",
            "reply_to": "[email protected]",
            "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": "[email protected]",
            "reply_to": "[email protected]",
            "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
        }
    }
}

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