sed -i 's#!${python2.7:location}/bin/python2.7#!/opt/slapos/parts/python2.7/bin/python2.7#' ${python2.7:location}/bin/python-config
sed -i 's#!${python:location}/bin/python${python:version}#!/opt/slapos/parts/python${python:version}/bin/python${python:version}#' ${python:location}/bin/python-config
rm -rf ${bison-go:location}
rm -rf ${bison-go:location}
[pygobject3]
[pygobject3]
pre-configure +=
pre-configure +=
sed -i 's#!/opt/slapos/parts/python2.7/bin/python2.7#!${python2.7:location}/bin/python2.7#' ${python2.7:location}/bin/python-config
sed -i 's#!/opt/slapos/parts/python${python:version}/bin/python${python:version}#!${python:location}/bin/python${python:version}#' ${python:location}/bin/python-config
sed -i 's#!${python2.7:location}/bin/python2.7#!/opt/slapos/parts/python2.7/bin/python2.7#' ${python2.7:location}/bin/python-config
sed -i 's#!${python:location}/bin/python${python:version}#!/opt/slapos/parts/python${python:version}/bin/python${python:version}#' ${python:location}/bin/python-config
@@ -237,14 +237,6 @@ Will append the specified path to the "VirtualHostRoot" of the zope's VirtualHos
...
@@ -237,14 +237,6 @@ Will append the specified path to the "VirtualHostRoot" of the zope's VirtualHos
"path" is an optional parameter, ignored if not specified.
"path" is an optional parameter, ignored if not specified.
Example of value: "/erp5/web_site_module/hosting/"
Example of value: "/erp5/web_site_module/hosting/"
caddy_custom_https
~~~~~~~~~~~~~~~~~~
Raw Caddy configuration in python template format (i.e. write "%%" for one "%") for the slave listening to the https port. Its content will be templatified in order to access functionalities such as cache access, ssl certificates... The list is available above.
caddy_custom_http
~~~~~~~~~~~~~~~~~
Raw Caddy configuration in python template format (i.e. write "%%" for one "%") for the slave listening to the http port. Its content will be templatified in order to access functionalities such as cache access, ssl certificates... The list is available above
url
url
~~~
~~~
Necessary to activate cache. ``url`` of backend to use.
Necessary to activate cache. ``url`` of backend to use.
...
@@ -359,33 +351,6 @@ Request slave frontend instance so that https://[1:2:3:4:5:6:7:8]:1234 will be::
...
@@ -359,33 +351,6 @@ Request slave frontend instance so that https://[1:2:3:4:5:6:7:8]:1234 will be::
Note: QUIC support in Caddy is really experimental. It can result with silently having problems with QUIC connections or hanging Caddy process. So in case of QUIC error ``QUIC_NETWORK_IDLE_TIMEOUT`` or ``QUIC_PEER_GOING_AWAY`` it is required to restart caddy process.
Note: Chrome will refuse to connect to QUIC on different port then HTTPS has been served. As Caddy binds to high ports, if QUIC is wanted, the browser need to connect to high port too.
Experimental QUIC available in Caddy is not configurable. If caddy is configured to bind to HTTPS port ``${port}``, QUIC is going to be advertised on this port only. It is not possible to configure another public port in case of port rewriting.
So it is required to ``DNAT`` from ``${public IP}`` of the computer to the computer partition running caddy ``${local IP}`` with configured port::
@@ -621,3 +488,8 @@ Each `caddy-frontend-N` partition downloads certificates from the kedifa server.
...
@@ -621,3 +488,8 @@ Each `caddy-frontend-N` partition downloads certificates from the kedifa server.
Caucase (exposed by ``kedifa-caucase-url`` in master partition parameters) is used to handle certificates for authentication to kedifa server.
Caucase (exposed by ``kedifa-caucase-url`` in master partition parameters) is used to handle certificates for authentication to kedifa server.
If ``automatic-internal-kedifa-caucase-csr`` is enabled (by default it is) there are scripts running on master partition to simulate human to sign certificates for each caddy-frontend-N node.
If ``automatic-internal-kedifa-caucase-csr`` is enabled (by default it is) there are scripts running on master partition to simulate human to sign certificates for each caddy-frontend-N node.
Support for X-Real-Ip and X-Forwarded-For
-----------------------------------------
X-Forwarded-For and X-Real-Ip are transmitted to the backend, but only for IPv4 access to the frontend. In case of IPv6 access, the provided IP will be wrong, because of using 6tunnel.
"description":"List of SOFTINST-XXX of Slaves, separated by space which is allowed to use custom configuration.",
"title":"Authorized Slave String",
"type":"string"
},
"-frontend-quantity":{
"-frontend-quantity":{
"description":"Quantity of Frontends Replicate.",
"description":"Quantity of Frontends Replicate.",
"title":"Frontend Replication Quantity",
"title":"Frontend Replication Quantity",
...
@@ -71,16 +66,6 @@
...
@@ -71,16 +66,6 @@
"title":"Test Verification URL",
"title":"Test Verification URL",
"type":"string"
"type":"string"
},
},
"enable-quic":{
"default":"false",
"description":"Enables QUIC - Quick UDP Internet Connections. Note that this is experimental feature, thus can result in undefined behaviour. Warning: Changing the parameter will result in restarting Caddy process.",
"enum":[
"true",
"false"
],
"title":"Enable QUIC",
"type":"string"
},
"proxy-try-duration":{
"proxy-try-duration":{
"default":5,
"default":5,
"description":"A time during which Caddy will try to establish connection with a backend. Setting it to 0 will result with immediate return of 502 EOF error to the browser, even if it would be possible to (re)connect to the backend during few moments. More info in https://caddyserver.com/docs/proxy try_durtion.",
"description":"A time during which Caddy will try to establish connection with a backend. Setting it to 0 will result with immediate return of 502 EOF error to the browser, even if it would be possible to (re)connect to the backend during few moments. More info in https://caddyserver.com/docs/proxy try_durtion.",
"description":"Raw http configuration in python template format. Your site will be rejected if you use it without notification and approval of frontend administrators",
"textarea":true,
"title":"HTTP configuration",
"type":"string"
},
"caddy_custom_https":{
"default":"",
"description":"Raw https configuration in python template format. Your site will be rejected if you use it without notification and approval of frontend administrators",
"textarea":true,
"title":"HTTPS configuration",
"type":"string"
},
"default-path":{
"default-path":{
"default":"",
"default":"",
"description":"Provide default path to redirect user to when user access / (the site root)",
"description":"Provide default path to redirect user to when user access / (the site root)",
...
@@ -153,12 +139,6 @@
...
@@ -153,12 +139,6 @@
"title":"Prefer gzip Encoding for Backend",
"title":"Prefer gzip Encoding for Backend",
"type":"string"
"type":"string"
},
},
"re6st-optimal-test":{
"default":"",
"description":"IPv6 and IPv6 Address for the frontend test if re6st is on the optimal status (use ipv6,ipv4)",
"title":"IPv6 and IPv4 Address to test Re6st",
"type":"string"
},
"server-alias":{
"server-alias":{
"default":"",
"default":"",
"description":"Server Alias List separated by space",
"description":"Server Alias List separated by space",
{%- do slave_instance.__setitem__('custom_domain', "%s.%s" % (domain_prefix, slapparameter_dict.get('domain'))) %}
{% do slave_publish_dict.__setitem__('log-access', slave_log_access_url) %}
{%- endif %}
{% do slave_publish_dict.__setitem__('slave-reference', slave_reference) %}
{%- if enable_cache and 'url' in slave_instance %}
{% do slave_publish_dict.__setitem__('public-ipv4', public_ipv4) %}
{%- if 'domain' in slave_instance %}
{%- if not slave_instance.get('custom_domain') %}
{# Set slave domain if none was defined #}
{%- do slave_instance.__setitem__('custom_domain', slave_instance.get('domain')) %}
{% if slave_instance.get('custom_domain', None) == None %}
{%- endif %}
{% set domain_prefix = slave_instance.get('slave_reference').replace("-", "").replace("_", "").lower() %}
{%- endif %}
{% do slave_instance.__setitem__('custom_domain', "%s.%s" % (domain_prefix, slapparameter_dict.get('domain'))) %}
{%- do slave_instance.__setitem__('backend_url', slave_instance.get('url')) %}
{% endif %}
{%- do slave_instance.__setitem__('https_backend_url', slave_instance.get('https-url', slave_instance.get('url'))) %}
{%- do slave_instance.__setitem__('url', cache_access) %}
{% if enable_cache and 'url' in slave_instance %}
{%- do slave_instance.__setitem__('https-url', ssl_cache_access) %}
{% if 'domain' in slave_instance %}
{%- do cached_server_dict.__setitem__(slave_reference, slave_configuration_section_name) %}
{% if not slave_instance.get('custom_domain') %}
{%- endif %}
{% do slave_instance.__setitem__('custom_domain', slave_instance.get('domain')) %}
{%- do slave_publish_dict.__setitem__('domain', slave_instance.get('custom_domain')) %}
{% endif %}
{%- do slave_publish_dict.__setitem__('url', "http://%s" % slave_instance.get('custom_domain')) %}
{% endif %}
{%- do slave_publish_dict.__setitem__('site_url', "http://%s" % slave_instance.get('custom_domain')) %}
{% do slave_instance.__setitem__('backend_url', slave_instance.get('url')) %}
{%- do slave_publish_dict.__setitem__('secure_access', 'https://%s' % slave_instance.get('custom_domain')) %}
{% do slave_instance.__setitem__('https_backend_url', slave_instance.get('https-url', slave_instance.get('url'))) %}
{% do slave_instance.__setitem__('url', cache_access) %}
{% do slave_instance.__setitem__('https-url', ssl_cache_access) %}
{% do cached_server_dict.__setitem__(slave_reference, slave_configuration_section_name) %}
{% endif %}
{# BBB: apache_custom_https and apache_custom_http #}
{% if not slave_instance.has_key('caddy_custom_http') and not slave_instance.has_key('caddy_custom_https') and not slave_instance.has_key('apache_custom_http') and not slave_instance.has_key('apache_custom_https') %}
{% do slave_publish_dict.__setitem__('domain', slave_instance.get('custom_domain')) %}
{% do slave_publish_dict.__setitem__('url', "http://%s" % slave_instance.get('custom_domain')) %}
{% do slave_publish_dict.__setitem__('site_url', "http://%s" % slave_instance.get('custom_domain')) %}
{% do slave_publish_dict.__setitem__('secure_access', 'https://%s' % slave_instance.get('custom_domain')) %}
{# header_upstream -X-Forwarded-For - caddy behaviour while removing and setting header is unstable, so for now original header has to be kept, even if in that case it comes from after ATS caddy itself #}
{# header_upstream -X-Forwarded-For - caddy behaviour while removing and setting header is unstable, so for now original header has to be kept, even if in that case it comes from after ATS caddy itself #}
"description":"Front-end's software type. If this parameter is empty, no front-end instance is requested. Else, sla-dict must specify 'frontend' which is a special value matching all frontends (e.g. {\"instance_guid=bar\": [\"frontend\"]}).",
"description":"Front-end's software type. If this parameter is empty, no front-end instance is requested. Else, sla-dict must specify 'frontend' which is a special value matching all frontends (e.g. {\"instance_guid=bar\": [\"frontend\"]}).",
"default":"",
"default":"",
"type":"string"
"type":"string",
"format":"uri"
},
},
"domain":{
"domain":{
"description":"The domain name to request front-end to respond as.",
"description":"The domain name to request front-end to respond as.",
...
@@ -225,7 +226,8 @@
...
@@ -225,7 +226,8 @@
"cloudooo-url":{
"cloudooo-url":{
"description":"Format conversion service URL",
"description":"Format conversion service URL",
"pattern":"^https?://",
"pattern":"^https?://",
"type":"string"
"type":"string",
"format":"uri"
},
},
"cloudooo-retry-count":{
"cloudooo-retry-count":{
"description":"Define retry count for cloudooo in network error case in test",
"description":"Define retry count for cloudooo in network error case in test",
"description":"Used to qualify RR in the configuration. i.e.: if your origin is a.example.com and the RR for Europe is 'eu' the european clients will use eu.a.exmple.com",
"description":"Used to qualify RR in the configuration. i.e.: if your origin is a.example.com and the RR for Europe is 'eu' the european clients will use eu.a.example.com",
"type":"string"
"type":"string"
},
},
"default":{
"default":{
"title":"Default RR",
"title":"Default RR",
"description":"Defautl record to use when the ip is not regognized",
"description":"Default record to use when the ip is not recognized",
"description":"Percent memory allocted per threads. Default: [\"tmp:70\", \"join:20\", \"sort:10\"]",
"type":"array",
"items":{
"type":"string"
},
"default":[
"tmp:70",
"join:20",
"sort:10"
]
},
"innodb-file-per-table":{
"title":"enable Innodb file per table",
"description":"enable Innodb file per table. Possible value: 0=disabled, 1=enabled",
"type":"integer",
"default":1,
"minimum":0,
"maximum":1
},
"use-ipv6":{
"title":"Mariadb server listen on IPv6",
"description":"Listen on IPv6 instead of IPv4.",
"type":"boolean",
"default":true
},
"failover-mode":{
"title":"Failover mode",
"description":"Failover is manual or automatic (default \"manual\").",
"type":"string",
"default":"manual",
"enum":[
"enum":[
"manual",
"manual",
"automatic"
"automatic"
]
]
},
},
"failover-limit":{
"failover-limit":{
"title":"Failover amount limit",
"title":"Failover amount limit",
"description":"Failover is canceld if already failover this number of time (0: unlimited) (default 5).",
"description":"Failover is canceld if already failover this number of time (0: unlimited) (default 5).",
"type":"integer",
"type":"integer",
"default":5
"default":5
},
},
"failover-falsepositive-heartbeat":{
"failover-falsepositive-heartbeat":{
"title":"Failover check slaves do not receive heartbeat",
"title":"Failover check slaves do not receive heartbeat",
"description":"Failover checks that slaves do not receive heartbeat (default true).",
"description":"Failover checks that slaves do not receive heartbeat (default true).",
"type":"boolean",
"type":"boolean",
"default":true
"default":true
},
},
"failover-falsepositive-heartbeat-timeout":{
"failover-falsepositive-heartbeat-timeout":{
"title":"Failover check slaves do not receive heartbeat timeout",
"title":"Failover check slaves do not receive heartbeat timeout",
"description":"Failover checks that slaves do not receive heartbeat detection timeout (default 3).",
"description":"Failover checks that slaves do not receive heartbeat detection timeout (default 3).",
"type":"integer",
"type":"integer",
"default":3
"default":3
},
},
"failover-falsepositive-ping-counter":{
"failover-falsepositive-ping-counter":{
"title":"Failover amount of ping failures",
"title":"Failover amount of ping failures",
"description":"Failover after this number of ping failures (interval 1s) (default 5).",
"description":"Failover after this number of ping failures (interval 1s) (default 5).",
"type":"integer",
"type":"integer",
"default":5
"default":5
},
},
"failover-max-slave-delay":{
"failover-max-slave-delay":{
"title":"Failover election ignore slave with replication delay",
"title":"Failover election ignore slave with replication delay",
"description":"Election ignore slave with replication delay over this time in sec (default 30).",
"description":"Election ignore slave with replication delay over this time in sec (default 30).",
"type":"integer",
"type":"integer",
"default":30
"default":30
},
},
"failover-readonly-state":{
"failover-readonly-state":{
"title":"Failover Switchover set slaves as read-only",
"title":"Failover Switchover set slaves as read-only",
"description":"Failover Switchover set slaves as read-only (default true).",
"description":"Failover Switchover set slaves as read-only (default true).",
"type":"boolean",
"type":"boolean",
"default":true
"default":true
},
},
"failover-restart-unsafe":{
"failover-restart-unsafe":{
"title":"Failover when cluster down if a slave is start first",
"title":"Failover when cluster down if a slave is start first",
"description":"Failover when cluster down if a slave is start first.",
"description":"Failover when cluster down if a slave is start first.",
"type":"boolean",
"type":"boolean",
"default":false
"default":false
},
},
"failover-time-limit":{
"failover-time-limit":{
"title":"Cancel failover if time in sec not passed after previous failover",
"title":"Cancel failover if time in sec not passed after previous failover",
"description":"Failover is canceled if timer in sec is not passed with previous failover (0: do not wait).",
"description":"Failover is canceled if timer in sec is not passed with previous failover (0: do not wait).",
"type":"integer",
"type":"integer",
"default":0
"default":0
},
},
"switchover-at-equal-gtid":{
"switchover-at-equal-gtid":{
"title":"Switchover only when slaves are fully in sync",
"title":"Switchover only when slaves are fully in sync",
"description":"Switchover only when slaves are fully in sync.",
"description":"Switchover only when slaves are fully in sync.",
"type":"boolean",
"type":"boolean",
"default":false
"default":false
},
},
"switchover-slave-wait-catch":{
"switchover-slave-wait-catch":{
"title":"Switchover wait for slave to catch with replication",
"title":"Switchover wait for slave to catch with replication",
"description":"Switchover wait for slave to catch with replication, not needed in GTID mode but enable to detect possible issues like witing on old master (default true).",
"description":"Switchover wait for slave to catch with replication, not needed in GTID mode but enable to detect possible issues like witing on old master (default true).",
"type":"boolean",
"type":"boolean",
"default":true
"default":true
},
},
"switchover-wait-kill":{
"switchover-wait-kill":{
"title":"Switchover wait ms before killing threads on demoted master",
"title":"Switchover wait ms before killing threads on demoted master",
"description":"Switchover wait this many milliseconds before killing threads on demoted master (default 5000).",
"description":"Switchover wait this many milliseconds before killing threads on demoted master (default 5000).",
"type":"integer",
"type":"integer",
"default":5000
"default":5000
},
},
"switchover-wait-trx":{
"switchover-wait-trx":{
"title":"Cancel switchover after timeout seconds if can't aquire FTWRL",
"title":"Cancel switchover after timeout seconds if can't aquire FTWRL",
"description":"Switchover is cancel after this timeout in second if can't aquire FTWRL (default 10).",
"description":"Switchover is cancel after this timeout in second if can't aquire FTWRL (default 10).",
"type":"integer",
"type":"integer",
"default":10
"default":10
},
},
"switchover-wait-write-query":{
"switchover-wait-write-query":{
"title":"Cancel switchover after timeout if a write query is running",
"title":"Cancel switchover after timeout if a write query is running",
"description":"Switchover is canceled if a write query is running for this time (default 10).",
"description":"Switchover is canceled if a write query is running for this time (default 10).",