{
  "type": "object",
  "$schema": "http://json-schema.org/draft-04/schema",

  "title": "Input Parameters",
  "properties": {
    "port": {
      "title": "Backend port",
      "description": "Port where the service is running on the backend",
      "default": 80,
      "type": "integer"
    },
    "frontend-custom_domain": {
      "title": "Custom Domain",
      "description": "Custom Domain to use for the website",
      "type": "string",
      "pattern": "^([a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,6}$"
    },

    "frontend-server-alias": {
      "title": "Server Alias",
      "description": "Server Alias List separated by space",
      "type": "string",
      "default": ""
    },

    "frontend-type": {
      "title": "Backend Type",
      "description": "Type of slave. If redirect, the slave will redirect to the given url. If zope, the rewrite rules will be compatible with Virtual Host Monster",
      "type": "string",
      "default": "",
      "enum": ["", "zope", "redirect"]
    },

    "frontend-path": {
      "title": "Backend Path",
      "description": "Path to proxy to in the backend",
      "type": "string",
      "default": ""
    },

    "frontend-default-path": {
      "title": "Default Path",
      "description": "Provide default path to redirect user to",
      "type": "string",
      "default": ""
    },

    "frontend-ssl_crt": {
      "title": "SSL Certificate",
      "description": "SSL Certificate",
      "type": "string",
      "textarea": true,
      "default": ""
    },
    "frontend-ssl_key": {
      "title": "SSL Key",
      "description": "SSL Key",
      "type": "string",
      "textarea": true,
      "default": ""
    },

    "frontend-ssl_ca_crt": {
      "title": "SSL Certificate Authority's Certificate",
      "description": "SSL Key",
      "type": "string",
      "textarea": true,
      "default": ""
    },
    "frontend-https-only": {
      "title": "HTTPS Only",
      "description": "If set to true, http request are redirect to https",
      "type": "boolean",
      "default": false
    },

    "frontend-ssl-proxy-verify": {
      "title": "Verify Backend Certificates",
      "description": "If set to true, Backend Certificates are checked",
      "type": "boolean",
      "default": false
    },

    "frontend-ssl_proxy_ca_crt": {
      "title": "SSL Backend Authority's Certificate",
      "description": "SSL Certificate Authority of the backen (to be used with ssl-proxy-verify)",
      "type": "string",
      "textarea": true,
      "default": ""
    },

    "frontend-enable_cache": {
      "title": "Enable Cache",
      "description": "If set to true, the cache is used",
      "type": "boolean",
      "default": false
    },

    "frontend-disable-no-cache-request": {
      "title": "Disable 'no-cache' requests",
      "description": "If set to true, no-cache control headers will be disabled",
      "type": "boolean",
      "default": false
    },

    "frontend-disable-via-header": {
      "title": "Disable 'Via' headers from cache",
      "description": "If set to true, via headers will be disabled",
      "type": "boolean",
      "default": false
    },

    "frontend-prefer-gzip-encoding-to-backend": {
      "title": "Prefer gzip Encoding for Backend",
      "description": "If set to true, if a request is made with accept encoding 'gzip', only that one will be transferred to the backend",
      "type": "boolean",
      "default": false
    },

    "frontend-disabled-cookie-list": {
      "title": "Disabled Cookies",
      "description": "List of Cookies separated by space that will not be sent to the backend",
      "type": "string",
      "default": ""
    }
  }
}
