{
    "type": "tabs",
    "i18n": true,
    "items": {
        "mainTab": {
            "type": "panel",
            "label": "Main settings",
            "items": {
                "bind": {
                    "type": "ip",
                    "listenOnAllPorts": true,
                    "label": "IP",
                    "xs": 12,
                    "sm": 12,
                    "md": 8,
                    "lg": 5,
                    "xl": 4
                },
                "port": {
                    "type": "number",
                    "min": 1,
                    "max": 65565,
                    "label": "Port",
                    "xs": 12,
                    "sm": 12,
                    "md": 4,
                    "lg": 3,
                    "xl": 2
                },
                "secure": {
                    "newLine": true,
                    "type": "checkbox",
                    "label": "Secure(HTTPS)",
                    "xs": 12,
                    "sm": 12,
                    "md": 6,
                    "lg": 2,
                    "xl": 2
                },
                "certPublic": {
                    "type": "certificate",
                    "hidden": "!data.secure",
                    "certType": "public",
                    "validator": "!data.secure || data.certPublic",
                    "label": "Public certificate",
                    "xs": 12,
                    "sm": 12,
                    "md": 6,
                    "lg": 2,
                    "xl": 2
                },
                "certPrivate": {
                    "hidden": "!data.secure",
                    "type": "certificate",
                    "certType": "private",
                    "validator": "!data.secure || data.certPrivate",
                    "label": "Private certificate",
                    "xs": 12,
                    "sm": 12,
                    "md": 6,
                    "lg": 2,
                    "xl": 2
                },
                "certChained": {
                    "hidden": "!data.secure",
                    "type": "certificate",
                    "certType": "chained",
                    "label": "Chained certificate",
                    "xs": 12,
                    "sm": 12,
                    "md": 6,
                    "lg": 2,
                    "xl": 2
                },
                "auth": {
                    "newLine": true,
                    "type": "checkbox",
                    "confirm": {
                        "condition": "!data.secure && data.auth",
                        "title": "Warning!",
                        "text": "Unsecure_Auth",
                        "ok": "Ignore warning",
                        "cancel": "Disable authentication",
                        "type": "warning",
                        "alsoDependsOn": ["secure"]
                    },
                    "label": "Authentication",
                    "xs": 12,
                    "sm": 12,
                    "md": 6,
                    "lg": 2,
                    "xl": 2
                },
                "defaultUser": {
                    "hidden": "!!data.auth",
                    "type": "user",
                    "label": "Run as",
                    "xs": 12,
                    "sm": 12,
                    "md": 6,
                    "lg": 2,
                    "xl": 2
                },
                "ttl": {
                    "hidden": "!data.auth",
                    "type": "number",
                    "label": "Login timeout",
                    "help": "sec",
                    "xs": 12,
                    "sm": 12,
                    "md": 6,
                    "lg": 2,
                    "xl": 2
                },
                "language": {
                    "newLine": true,
                    "label": "Language for only this instance",
                    "system": true,
                    "type": "language",
                    "xs": 12,
                    "sm": 12,
                    "md": 4,
                    "lg": 2,
                    "xl": 2
                }
            }
        },
        "leTab": {
            "type": "panel",
            "label": "Let's Encrypt SSL",
            "disabled": "!data.secure",
            "items": {
                "_image": {
                    "type": "staticImage",
                    "tooltip": "Read about Let's Encrypt certificates",
                    "href": "https://github.com/ioBroker/ioBroker.admin/blob/master/README.md#lets-encrypt-certificates",
                    "src": "../../img/le.png",
                    "style": {
                        "width": 200,
                        "height": 59
                    },
                    "xs": 12,
                    "sm": 12,
                    "md": 12,
                    "lg": 12,
                    "xl": 12
                },
                "_staticText": {
                    "type": "staticText",
                    "text": "ra_Use iobroker.acme adapter for letsencrypt certificates",
                    "xs": 12,
                    "sm": 12,
                    "md": 12,
                    "lg": 12,
                    "xl": 12
                }
            }
        }
    }
}
