{
    "_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PANEL",
    "meta": {
        "version": "PTDL_v2",
        "update_url": null
    },
    "exported_at": "2022-10-15T12:38:18+02:00",
    "name": "Mumble Server",
    "author": "panel@example.com",
    "description": "Mumble is an open source, low-latency, high quality voice chat software primarily intended for use while gaming.",
    "features": null,
    "docker_images": {
        "Mumble": "ghcr.io\/parkervcp\/yolks:voice_mumble"
    },
    "file_denylist": [],
    "startup": "mumble-server -fg -ini murmur.ini",
    "config": {
        "files": "{\r\n    \"murmur.ini\": {\r\n        \"parser\": \"ini\",\r\n        \"find\": {\r\n            \"database\": \"\/home\/container\/murmur.sqlite\",\r\n            \"logfile\": \"\/home\/container\/murmur.log\",\r\n            \"port\": \"{{server.build.default.port}}\",\r\n            \"host\": \"0.0.0.0\",\r\n            \"users\": \"{{server.build.env.MAX_USERS}}\"\r\n        }\r\n    }\r\n}",
        "startup": "{\r\n    \"done\": \"Server listening on\"\r\n}",
        "logs": "{}",
        "stop": "^C"
    },
    "scripts": {
        "installation": {
            "script": "#!\/bin\/ash\r\n\r\nif [ ! -d \/mnt\/server\/ ]; then\r\n    mkdir \/mnt\/server\/\r\nfi\r\n\r\ncd \/mnt\/server\r\n\r\nFILE=\/mnt\/server\/murmur.ini\r\nif [ -f \"$FILE\" ]; then\r\n    echo \"Config file already exists.\"\r\nelse \r\n    echo \"Downloading the config file.\"\r\n    apk add --no-cache murmur\r\n    cp \/etc\/murmur.ini \/mnt\/server\/murmur.ini\r\n    apk del murmur\r\nfi\r\necho \"done\"",
            "container": "ghcr.io\/App\/installers:alpine",
            "entrypoint": "ash"
        }
    },
    "variables": [
        {
            "name": "Maximum Users",
            "description": "Maximum concurrent users on the mumble server.",
            "env_variable": "MAX_USERS",
            "default_value": "100",
            "user_viewable": true,
            "user_editable": false,
            "rules": "required|numeric|digits_between:1,5",
            "field_type": "text"
        }
    ]
}
