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
Paul Graydon
slapos
Commits
7c7fb36d
Commit
7c7fb36d
authored
Sep 19, 2022
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rapid-cdn: Escape % in haproxy
parent
578dc7fc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
software/rapid-cdn/buildout.hash.cfg
software/rapid-cdn/buildout.hash.cfg
+1
-1
software/rapid-cdn/templates/backend-haproxy.cfg.in
software/rapid-cdn/templates/backend-haproxy.cfg.in
+1
-1
software/rapid-cdn/test/test.py
software/rapid-cdn/test/test.py
+1
-1
No files found.
software/rapid-cdn/buildout.hash.cfg
View file @
7c7fb36d
...
@@ -50,7 +50,7 @@ md5sum = d56e2cfab274cbbbe5b387f2f6e417df
...
@@ -50,7 +50,7 @@ md5sum = d56e2cfab274cbbbe5b387f2f6e417df
[template-backend-haproxy-configuration]
[template-backend-haproxy-configuration]
_update_hash_filename_ = templates/backend-haproxy.cfg.in
_update_hash_filename_ = templates/backend-haproxy.cfg.in
md5sum =
6a1c91b74266b4d819051b29458d613f
md5sum =
b4b55d931249f11e4e1256afeb74b503
[template-empty]
[template-empty]
_update_hash_filename_ = templates/empty.in
_update_hash_filename_ = templates/empty.in
...
...
software/rapid-cdn/templates/backend-haproxy.cfg.in
View file @
7c7fb36d
...
@@ -126,7 +126,7 @@ backend {{ slave_instance['slave_reference'] }}-{{ scheme }}
...
@@ -126,7 +126,7 @@ backend {{ slave_instance['slave_reference'] }}-{{ scheme }}
{%- do active_check_list.append('rise %s' % (slave_instance['health-check-rise'])) %}
{%- do active_check_list.append('rise %s' % (slave_instance['health-check-rise'])) %}
{%- do active_check_list.append('fall %s' % (slave_instance['health-check-fall'])) %}
{%- do active_check_list.append('fall %s' % (slave_instance['health-check-fall'])) %}
{%- if slave_instance['health-check-http-method'] != 'CONNECT' %}
{%- if slave_instance['health-check-http-method'] != 'CONNECT' %}
{%- do active_check_option_list.append('option httpchk %s %s %s' % (slave_instance['health-check-http-method'], slave_instance['health-check-http-path'] | urlencode, slave_instance['health-check-http-version'])) %}
{%- do active_check_option_list.append('option httpchk %s %s %s' % (slave_instance['health-check-http-method'], slave_instance['health-check-http-path'] | urlencode
| replace('%', '%%')
, slave_instance['health-check-http-version'])) %}
{%- endif %}
{%- endif %}
{%- do active_check_option_list.append('timeout check %ss' % (slave_instance['health-check-timeout'])) %}
{%- do active_check_option_list.append('timeout check %ss' % (slave_instance['health-check-timeout'])) %}
{%- endif %}
{%- endif %}
...
...
software/rapid-cdn/test/test.py
View file @
7c7fb36d
...
@@ -7021,7 +7021,7 @@ backend _health-check-custom-http
...
@@ -7021,7 +7021,7 @@ backend _health-check-custom-http
retries 3
retries 3
server _health-check-custom-backend-http %s check inter 15s"""
server _health-check-custom-backend-http %s check inter 15s"""
""" rise 3 fall 7
""" rise 3 fall 7
option httpchk POST /POST-path%%
20to%%20be
%%20encoded HTTP/1.0
option httpchk POST /POST-path%%
%%20to%%%%20be%%
%%20encoded HTTP/1.0
timeout check 7s"""
%
(
backend
,),
timeout check 7s"""
%
(
backend
,),
'health-check-default'
:
"""
\
'health-check-default'
:
"""
\
backend _health-check-default-http
backend _health-check-default-http
...
...
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