Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Aurel
slapos
Commits
0e786af7
Commit
0e786af7
authored
Aug 27, 2013
by
Vincent Pelletier
Committed by
Julien Muchembled
Sep 04, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5: Make backend apache also listen on IPv6.
Also, fix frontend request.
parent
ecabe3fd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
stack/erp5/buildout.cfg
stack/erp5/buildout.cfg
+2
-2
stack/erp5/instance-balancer.cfg.in
stack/erp5/instance-balancer.cfg.in
+3
-6
stack/erp5/instance-erp5.cfg.in
stack/erp5/instance-erp5.cfg.in
+5
-2
No files found.
stack/erp5/buildout.cfg
View file @
0e786af7
...
@@ -269,7 +269,7 @@ extra-context =
...
@@ -269,7 +269,7 @@ extra-context =
[template-erp5]
[template-erp5]
< = download-base
< = download-base
filename = instance-erp5.cfg.in
filename = instance-erp5.cfg.in
md5sum =
429f14ef4ef266fb077d0be1cb8b8887
md5sum =
58d5958e93c730a0e0058adcbbb1579c
[template-neo]
[template-neo]
< = download-base
< = download-base
...
@@ -311,7 +311,7 @@ link-binary =
...
@@ -311,7 +311,7 @@ link-binary =
[template-balancer]
[template-balancer]
< = download-base
< = download-base
filename = instance-balancer.cfg.in
filename = instance-balancer.cfg.in
md5sum =
16967b0dd693aaba611eb4eb6522a831
md5sum =
2e27ba1ab4fd24ec7df8b6f5d9835b44
[template-logrotate-base]
[template-logrotate-base]
< = template-jinja2-base
< = template-jinja2-base
...
...
stack/erp5/instance-balancer.cfg.in
View file @
0e786af7
...
@@ -66,7 +66,7 @@ backend-dict = {{ dumps(haproxy_dict) }}
...
@@ -66,7 +66,7 @@ backend-dict = {{ dumps(haproxy_dict) }}
[apache]
[apache]
recipe = slapos.cookbook:apache.zope.backend
recipe = slapos.cookbook:apache.zope.backend
backend-list = {{ dumps(apache_dict.values()) }}
backend-list = {{ dumps(apache_dict.values()) }}
ip = {
% if use_ipv6 %}{{ ipv6 }}{% else %}{{ ipv4 }}{% endif %
}
ip = {
{ dumps([ipv6, ipv4]) }
}
wrapper = ${directory:bin}/apache
wrapper = ${directory:bin}/apache
scheme = https
scheme = https
key-file = ${directory:apache-conf}/apache.key
key-file = ${directory:apache-conf}/apache.key
...
@@ -88,11 +88,8 @@ ssl-authentication-crl = ${certificate-authority:ca-crl}
...
@@ -88,11 +88,8 @@ ssl-authentication-crl = ${certificate-authority:ca-crl}
[publish]
[publish]
recipe = slapos.cookbook:publish.serialised
recipe = slapos.cookbook:publish.serialised
{% for family_name, (apache_port, _) in apache_dict.items() -%}
{% for family_name, (apache_port, _) in apache_dict.items() -%}
{% if use_ipv6 -%}
{{ family_name ~ '-v6' }} = ${apache:scheme}://[{{ ipv6 }}]:{{ apache_port }}
{{ family_name }} = ${apache:scheme}://[${apache:ip}]:{{ apache_port }}
{{ family_name }} = ${apache:scheme}://{{ ipv4 }}:{{ apache_port }}
{% else -%}
{{ family_name }} = ${apache:scheme}://${apache:ip}:{{ apache_port }}
{% endif -%}
{% endfor -%}
{% endfor -%}
[certificate-authority]
[certificate-authority]
...
...
stack/erp5/instance-erp5.cfg.in
View file @
0e786af7
...
@@ -127,7 +127,7 @@ sla-computer_guid = {{ zope_parameter_dict.get('computer-guid', computer_id) }}
...
@@ -127,7 +127,7 @@ sla-computer_guid = {{ zope_parameter_dict.get('computer-guid', computer_id) }}
[{{ frontend_name }}]
[{{ frontend_name }}]
< = request-frontend-base
< = request-frontend-base
name = {{ frontend_name }}
name = {{ frontend_name }}
config-url =
{{ backend_url }
}
config-url =
${request-balancer:{{ family_name }}-v6
}
{% else -%}
{% else -%}
{% set publishable = 'request-balancer:connection-' ~ family_name -%}
{% set publishable = 'request-balancer:connection-' ~ family_name -%}
{% endif -%}
{% endif -%}
...
@@ -150,7 +150,10 @@ extra-config =
...
@@ -150,7 +150,10 @@ extra-config =
zope-family-dict
zope-family-dict
{{ zope_address_list_id_dict.values() | join(' ') }}
{{ zope_address_list_id_dict.values() | join(' ') }}
return =
return =
{{ zope_family_dict.keys() | join(' ') }}
{%- for family in zope_family_dict %}
{{ family }}
{{ family }}-v6
{% endfor -%}
config-zope-family-dict = {{ dumps(zope_family_parameter_dict) }}
config-zope-family-dict = {{ dumps(zope_family_parameter_dict) }}
config-tcpv4-port = {{ dumps(slapparameter_dict.get('', 2150)) }}
config-tcpv4-port = {{ dumps(slapparameter_dict.get('', 2150)) }}
{% for zope_section_id, name in zope_address_list_id_dict.items() -%}
{% for zope_section_id, name in zope_address_list_id_dict.items() -%}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment