Provide tidstorage connection information
[slapos.git] / software / erp5 / snippet-backend.cfg
1 [apache-%(backend_name)s]
2 recipe = slapos.cookbook:apache.zope.backend
3 backend = http://$${haproxy-%(backend_name)s:ip}:$${haproxy-%(backend_name)s:port}/
4 ip = $${slap-network-information:global-ipv6}
5 port = %(apache_port)s
6 wrapper = $${rootdirectory:bin}/apache-%(backend_name)s
7 key-file = $${directory:apache-conf}/apache-%(backend_name)s.key
8 cert-file = $${directory:apache-conf}/apache-%(backend_name)s.crt
9 configuration-file = $${directory:apache-conf}/apache-%(backend_name)s.conf
10 access-control-string = %(access_control_string)s
11 pid-file = $${basedirectory:run}/apache-%(backend_name)s.pid
12 lock-file = $${basedirectory:run}/apache-%(backend_name)s.lock
13 error-log = $${basedirectory:log}/apache-%(backend_name)s-error.log
14 access-log = $${basedirectory:log}/apache-%(backend_name)s-access.log
15 apache-binary = ${apache:location}/bin/httpd
16
17 [ca-apache-%(backend_name)s]
18 <= certificate-authority
19 recipe = slapos.cookbook:certificate_authority.request
20 key-file = $${apache-%(backend_name)s:key-file}
21 cert-file = $${apache-%(backend_name)s:cert-file}
22 executable = $${apache-%(backend_name)s:wrapper}
23 wrapper = $${basedirectory:services}/apache-%(backend_name)s
24
25 [logrotate-entry-apache-%(backend_name)s]
26 <= logrotate
27 recipe = slapos.cookbook:logrotate.d
28 name = apache-%(backend_name)s
29 log = $${apache-%(backend_name)s:error-log} $${apache-%(backend_name)s:access-log}
30 post = ${buildout:bin-directory}/killpidfromfile $${apache-%(backend_name)s:pid-file} SIGUSR1
31
32 [haproxy-%(backend_name)s]
33 recipe = slapos.cookbook:haproxy
34 name = %(backend_name)s
35 conf-path = $${rootdirectory:etc}/haproxy-%(backend_name)s.cfg
36 ip = $${slap-network-information:local-ipv4}
37 port = %(haproxy_port)s
38 maxconn = %(maxconn)s
39 server-check-path = %(server_check_path)s
40 wrapper-path = $${basedirectory:services}/haproxy-%(backend_name)s
41 binary-path = ${haproxy:location}/sbin/haproxy
42 backend-list = %(haproxy_backend_list)s