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
b75055a1
Commit
b75055a1
authored
Jan 22, 2013
by
Cédric de Saint Martin
Committed by
Kazuhiko Shiozaki
Mar 21, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Temporary forbid activation of cache until it is properly tested.
parent
34ebdbe1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
slapos/recipe/apache_frontend/__init__.py
slapos/recipe/apache_frontend/__init__.py
+9
-7
No files found.
slapos/recipe/apache_frontend/__init__.py
View file @
b75055a1
...
@@ -132,12 +132,14 @@ class Recipe(BaseSlapRecipe):
...
@@ -132,12 +132,14 @@ class Recipe(BaseSlapRecipe):
slave_dict
[
reference
]
=
"%s%s/"
%
(
scheme
,
domain
)
slave_dict
[
reference
]
=
"%s%s/"
%
(
scheme
,
domain
)
# Check if we want varnish+stunnel cache.
# Check if we want varnish+stunnel cache.
if
enable_cache
:
#if enable_cache:
# XXX-Cedric : need to refactor to clean code? (to many variables)
# # XXX-Cedric : need to refactor to clean code? (to many variables)
rewrite_rule
=
self
.
configureVarnishSlave
(
# rewrite_rule = self.configureVarnishSlave(
base_varnish_port
,
backend_url
,
reference
,
service_dict
,
domain
)
# base_varnish_port, backend_url, reference, service_dict, domain)
base_varnish_port
+=
2
# base_varnish_port += 2
else
:
#else:
# rewrite_rule = "%s %s" % (domain, backend_url)
# Temporary forbid activation of cache until it is properly tested
rewrite_rule
=
"%s %s"
%
(
domain
,
backend_url
)
rewrite_rule
=
"%s %s"
%
(
domain
,
backend_url
)
# Finally, if successful, we add the rewrite rule to our list of rules
# Finally, if successful, we add the rewrite rule to our list of rules
...
...
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