[
    {
        "step_title": "DNS Settings",
        "items": [
            {
                "desc": "Configure your encrypted DNS settings."
            },
            {
                "type": "singleselect",
                "desc": "<b>IPv6 Support</b><br>Enable only if your network has IPv6 connectivity",
                "subitems": [
                    {
                        "key": "wizard_noipv6",
                        "desc": "Disabled",
                        "defaultValue": true
                    },
                    {
                        "key": "wizard_ipv6",
                        "desc": "Enabled",
                        "defaultValue": false
                    }
                ]
            },
            {
                "type": "textfield",
                "desc": "<b>Preferred Servers</b> (optional)<br>Leave blank for auto-selection, or specify servers like 'cloudflare', 'google'",
                "subitems": [
                    {
                        "key": "wizard_servers",
                        "desc": "Server names",
                        "defaultValue": "",
                        "validator": {
                            "allowBlank": true,
                            "regex": {
                                "expr": "/^((('[\\\\w_\\\\-\\\\.]+', )+'[\\\\w_\\\\-\\\\.]+')|('[\\\\w_\\\\-\\\\.]+'))$/",
                                "errorText": "Use format: 'cloudflare', 'google'"
                            }
                        }
                    }
                ]
            },
            {
                "desc": "<a target=\"_blank\" href=\"https://dnscrypt.info/public-servers\">View available servers</a>"
            }
        ]
    },
    {
        "step_title": "Monitoring Dashboard",
        "items": [
            {
                "desc": "Configure access to the built-in monitoring dashboard on port 8153.<br>Leave password blank to disable authentication."
            },
            {
                "type": "textfield",
                "subitems": [
                    {
                        "key": "wizard_ui_user",
                        "desc": "Username",
                        "defaultValue": "admin",
                        "validator": {
                            "allowBlank": false,
                            "minLength": 1
                        }
                    }
                ]
            },
            {
                "type": "password",
                "subitems": [
                    {
                        "key": "wizard_ui_pass",
                        "desc": "Password",
                        "defaultValue": "",
                        "validator": {
                            "allowBlank": true
                        }
                    }
                ]
            }
        ]
    }
]
