[
    {
        "step_title": "Web UI Authentication Credentials",
        "invalid_next_disabled": true,
        "items": [
            {
                "desc": "The Syncthing Web GUI should not be accessible without authentication.  That would be dangerous because with access to the Web GUI, any folder can be configured for sharing by a malicious third-party.<br/>Please provide a user name and password to protect from unauthorized logins.  It will be required every time the Syncthing Web GUI is opened.<br/><br/>(Leaving either field empty disables authentication.)"
            },
            {
                "type": "textfield",
                "subitems": [
                    {
                        "key": "wizard_username",
                        "desc": "User name",
                        "defaultValue": "syncthing",
                        "validator": {
                            "allowBlank": true,
                            "regex": {
                                "expr": "/^[^<>:*/?\"|]*$/",
                                "errorText": "Character not allowed in user name"
                            }
                        }
                    }
                ]
            },
            {
                "type": "password",
                "subitems": [
                    {
                        "key": "wizard_password",
                        "desc": "Password",
                        "validator": {
                            "allowBlank": true,
                            "regex": {
                                "expr": "/^[^<>:*/?\"|]*$/",
                                "errorText": "Character not allowed in password"
                            }
                        }
                    }
                ]
            }
        ]
    },
    {
        "step_title": "Permissions and Customization",
        "items": [
            {
                "desc": "<b>Permissions</b>"
            },
            {
                "desc": "Permissions for this package are handled by the <b>'sc-syncthing'</b> group. <br>Using File Station, add this group to every folder Syncthing should be allowed to access. <br/>Please read <a target=\"_blank\" href=\"https://github.com/SynoCommunity/spksrc/wiki/Permission-Management\">Permission Management</a> for details."
            },
            {
                "desc": "<b>Customization</b>"
            },
            {
                "desc": "For advanced customization you can edit the file <code>/var/packages/syncthing/var/options.conf</code>. For example, you can define a custom <code>HOME</code> folder or additional parameters to start Syncthing with. <br/>To modify the options file, you need <code>SSH</code> access with a privileged user account. To apply your modifications, you have to restart Syncthing in the Package Center."
            }
        ]
    }
]
