Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
Carlos Ramos Carreño
erp5
Commits
7c78875c
Commit
7c78875c
authored
Aug 04, 2011
by
Gabriel Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor code to install stunnel and generate entries
parent
1e984809
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
8 deletions
+19
-8
slapos/recipe/apache/__init__.py
slapos/recipe/apache/__init__.py
+19
-8
No files found.
slapos/recipe/apache/__init__.py
View file @
7c78875c
...
@@ -94,15 +94,26 @@ class Recipe(BaseSlapRecipe):
...
@@ -94,15 +94,26 @@ class Recipe(BaseSlapRecipe):
slave_port
=
443
slave_port
=
443
else
:
else
:
slave_port
=
80
slave_port
=
80
service_name
=
"varnish_%s"
%
reference
self
.
installVarnishCache
(
name
=
"varnish"
,
varnish_ip
=
self
.
getLocalIPv4Address
()
ip
=
self
.
getLocalIPv4Address
(),
self
.
installVarnishCache
(
service_name
,
ip
=
varnish_ip
,
port
=
base_varnish_port
,
port
=
base_varnish_port
,
control_port
=
base_varnish_control_port
,
control_port
=
base_varnish_control_port
,
backend_host
=
slave_host
,
backend_host
=
slave_host
,
backend_port
=
slave_port
,
backend_port
=
slave_port
,
size
=
"1G"
)
size
=
"1G"
)
service_dict
[
service_name
]
=
dict
(
public_ip
=
varnish_ip
,
public_port
=
base_varnish_port
,
private_ip
=
slave_host
,
private_port
=
slave_port
)
if
service_dict
!=
{}:
self
.
installStunnel
(
service_dict
,
certificate
,
key
,
ca_conf
[
"ca_crl"
],
ca_conf
[
"certificate_authority_path"
])
apache_parameter_dict
=
self
.
installFrontendApache
(
apache_parameter_dict
=
self
.
installFrontendApache
(
ip_list
=
[
"[%s]"
%
self
.
getGlobalIPv6Address
(),
ip_list
=
[
"[%s]"
%
self
.
getGlobalIPv6Address
(),
self
.
getLocalIPv4Address
()],
self
.
getLocalIPv4Address
()],
...
...
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