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
Labels
Merge Requests
105
Merge Requests
105
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos
Commits
c22d3e90
Commit
c22d3e90
authored
Mar 12, 2015
by
Cédric Le Ninivin
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5: Haproxy leave ERP5 set the cookie
parent
123e8474
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
stack/erp5/buildout.cfg
stack/erp5/buildout.cfg
+1
-1
stack/erp5/haproxy.cfg.in
stack/erp5/haproxy.cfg.in
+3
-1
No files found.
stack/erp5/buildout.cfg
View file @
c22d3e90
...
...
@@ -355,7 +355,7 @@ md5sum = 399ea8b0b8bdcc63d7295351445a863a
[template-haproxy-cfg]
< = download-base
filename = haproxy.cfg.in
md5sum =
392e5aabb0b873890d4d070e5a25f51e
md5sum =
7ee391d6a79ff14f23d6c4631469997c
[bt5-repository]
# Format:
...
...
stack/erp5/haproxy.cfg.in
View file @
c22d3e90
...
...
@@ -11,7 +11,6 @@ defaults
retries 1
option redispatch
maxconn 2000
cookie SERVERID insert nocache postonly
balance roundrobin
stats uri /haproxy
stats realm Global\ statistics
...
...
@@ -37,6 +36,9 @@ defaults
{% for name, (port, backend_list) in parameter_dict['backend-dict'].items() -%}
listen {{ name }} {{ parameter_dict['ip'] }}:{{ port }}
cookie SERVERID rewrite
http-request set-header X-Balancer-Current-Cookie SERVERID
http-send-name-header X-Balancer-Current-Server
{% set has_webdav = [] -%}
{% for address, connection_count, webdav in backend_list -%}
{% if webdav %}{% do has_webdav.append(None) %}{% endif -%}
...
...
Cédric Le Ninivin
@cedric.leninivin
mentioned in merge request
!4 (closed)
·
May 26, 2015
mentioned in merge request
!4 (closed)
mentioned in merge request !4
Toggle commit list
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