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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
slapos
Commits
ba7bcb51
Commit
ba7bcb51
authored
Jan 22, 2013
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Temporary forbid activation of cache until it is properly tested.
parent
f2fd44fa
Changes
1
Hide 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 @
ba7bcb51
...
@@ -132,13 +132,15 @@ class Recipe(BaseSlapRecipe):
...
@@ -132,13 +132,15 @@ 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
)
# rewrite_rule = "%s %s" % (domain, backend_url)
# Temporary forbid activation of cache until it is properly tested
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
if
rewrite_rule
:
if
rewrite_rule
:
...
...
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