instance-slave-apache-input-schema.json 6.53 KB
Newer Older
1 2 3 4 5 6 7 8
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-04/schema",
  "title": "Input Parameters",
  "properties": {
    "url": {
      "title": "Backend URL",
      "description": "Url of the backend",
9 10
      "type": "string",
      "pattern": "^(http|https|ftp)://"
11
    },
12 13 14 15 16 17
    "https-url": {
      "title": "HTTPS Backend URL",
      "description": "Url of the backend if it is diferent from url parameter",
      "type": "string",
      "pattern": "^(http|https|ftp)://"
    },
18 19 20 21
    "custom_domain": {
      "title": "Custom Domain",
      "description": "Custom Domain to use for the website",
      "type": "string",
Cédric de Saint Martin's avatar
Cédric de Saint Martin committed
22
      "pattern": "^([a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,6}$"
23
    },
24 25 26 27 28 29
    "server-alias": {
      "title": "Server Alias",
      "description": "Server Alias List separated by space",
      "type": "string",
      "default": ""
    },
30 31
    "type": {
      "title": "Backend Type",
32
      "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",
33 34
      "type": "string",
      "default": "",
35 36 37 38 39 40 41
      "enum": [
        "",
        "zope",
        "redirect",
        "notebook",
        "eventsource"
      ]
42 43 44 45 46 47 48
    },
    "path": {
      "title": "Backend Path",
      "description": "Path to proxy to in the backend",
      "type": "string",
      "default": ""
    },
49 50
    "default-path": {
      "title": "Default Path",
51
      "description": "Provide default path to redirect user to when user access / (the site root)",
52 53 54
      "type": "string",
      "default": ""
    },
55 56
    "ssl_crt": {
      "title": "SSL Certificate",
57
      "description": "Content of the SSL Certificate file",
58
      "type": "string",
59
      "textarea": true,
60 61 62 63
      "default": ""
    },
    "ssl_key": {
      "title": "SSL Key",
64
      "description": "Content of the SSL Key file",
65
      "type": "string",
66
      "textarea": true,
67 68 69 70
      "default": ""
    },
    "ssl_ca_crt": {
      "title": "SSL Certificate Authority's Certificate",
71
      "description": "Content of the CA certificate file",
72
      "type": "string",
73
      "textarea": true,
74 75 76 77
      "default": ""
    },
    "https-only": {
      "title": "HTTPS Only",
78
      "description": "If set to true, http requests will be redirected to https",
79 80
      "type": "string",
      "default": "false",
81 82 83 84
      "enum": [
        "false",
        "true"
      ]
85
    },
86 87
    "ssl-proxy-verify": {
      "title": "Verify Backend Certificates",
88
      "description": "If set to true, Backend SSL Certificates will be checked and frontend will refuse to proxy if certificate is invalid",
89 90
      "type": "string",
      "default": "false",
91 92 93 94
      "enum": [
        "false",
        "true"
      ]
95 96 97
    },
    "ssl_proxy_ca_crt": {
      "title": "SSL Backend Authority's Certificate",
98
      "description": "Content of the SSL Certificate Authority file of the backend (to be used with ssl-proxy-verify)",
99 100 101
      "type": "string",
      "default": ""
    },
102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
    "monitor-ipv6-test": {
      "title": "IPv6 Address to Monitor Packet Lost",
      "description": "IPv6 Address for the frontend keep monitoring with ping6 (without brackets)",
      "type": "string",
      "default": ""
    },
    "monitor-ipv4-test": {
      "title": "IPv4 Address to Monitor Packet Lost",
      "description": "IPv4 Address for the frontend keep monitoring with ping",
      "type": "string",
      "default": ""
    },
    "re6st-optimal-test": {
      "title": "IPv6 and IPv4 Address to test Re6st",
      "description": "IPv6 and IPv6 Address for the frontend test if re6st is on the optimal status (use ipv6,ipv4)",
      "type": "string",
      "default": ""
    },
120 121
    "enable_cache": {
      "title": "Enable Cache",
122
      "description": "If set to true, http caching server (Apache Traffic Server) will be used between frontend apache and backend",
123 124
      "type": "string",
      "default": "false",
125 126 127 128
      "enum": [
        "false",
        "true"
      ]
129
    },
130 131
    "disable-no-cache-request": {
      "title": "Disable 'no-cache' requests",
132
      "description": "If set to true, Cache-Control and Pragma requests headers will not be sent to cache and backend servers. This prevents clients from bypassing cache when enable_cache is true",
133 134
      "type": "string",
      "default": "false",
135 136 137 138
      "enum": [
        "false",
        "true"
      ]
139
    },
140 141
    "disable-via-header": {
      "title": "Disable 'Via' headers from cache",
142
      "description": "If set to true, Via response headers will not be sent to client",
143 144
      "type": "string",
      "default": "false",
145 146 147 148
      "enum": [
        "false",
        "true"
      ]
149
    },
150 151 152 153 154
    "enable-http2": {
      "title": "Enable HTTP2 Protocol",
      "description": "Use HTTP2 Protocol for the site",
      "type": "string",
      "default": "true",
155 156 157 158
      "enum": [
        "true",
        "false"
      ]
159
    },
160 161
    "prefer-gzip-encoding-to-backend": {
      "title": "Prefer gzip Encoding for Backend",
162
      "description": "If set to true, frontend will rewrite Accept-Encoding request header to simply 'gzip' for all variants of Accept-Encoding containing 'gzip', in order to maximize cache hits for resources cached with Vary: Accept-Encoding when enable_cache is used",
163 164
      "type": "string",
      "default": "false",
165 166 167 168
      "enum": [
        "false",
        "true"
      ]
169 170 171
    },
    "disabled-cookie-list": {
      "title": "Disabled Cookies",
172
      "description": "List of Cookies separated by space that will not be sent to cache and backend servers. This is especially useful to discard analytics tracking cookies when using Vary: Cookie cache headers",
173 174 175
      "type": "string",
      "default": ""
    },
176 177
    "apache_custom_http": {
      "title": "HTTP configuration",
178
      "description": "Raw http configuration in python template format. Your site will be rejected if you use it without notification and approval of frontend administrators",
179
      "default": "",
180
      "textarea": true,
181 182 183 184
      "type": "string"
    },
    "apache_custom_https": {
      "title": "HTTPS configuration",
185
      "description": "Raw https configuration in python template format. Your site will be rejected if you use it without notification and approval of frontend administrators",
186
      "default": "",
187
      "textarea": true,
188
      "type": "string"
189 190 191 192 193 194 195 196 197 198
    },
    "virtualhostroot-http-port": {
      "description": "Port where http requests to frontend will be redirected.",
      "default": 80,
      "type": "integer"
    },
    "virtualhostroot-https-port": {
      "description": "Port where https requests to frontend will be redirected.",
      "default": 443,
      "type": "integer"
199 200 201
    }
  }
}