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
HongzheWang
slapos
Commits
057b0a91
Commit
057b0a91
authored
Apr 17, 2013
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use public ipv4 as bind address if defined.
parent
a10f20f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
slapos/recipe/reverse_proxy_nginx/__init__.py
slapos/recipe/reverse_proxy_nginx/__init__.py
+8
-0
No files found.
slapos/recipe/reverse_proxy_nginx/__init__.py
View file @
057b0a91
...
@@ -26,9 +26,17 @@
...
@@ -26,9 +26,17 @@
##############################################################################
##############################################################################
import
operator
import
operator
from
slapos.recipe.librecipe
import
GenericSlapRecipe
from
slapos.recipe.librecipe
import
GenericSlapRecipe
import
traceback
import
zc.buildout
import
zc.buildout
class
Recipe
(
GenericSlapRecipe
):
class
Recipe
(
GenericSlapRecipe
):
def
__init__
(
self
,
buildout
,
name
,
options
):
# If public ipv4 is defined: use it as bind address
if
options
[
'public-ipv4'
]:
options
[
'ipv4'
]
=
options
[
'public-ipv4'
]
GenericSlapRecipe
.
__init__
(
self
,
buildout
,
name
,
options
)
def
_install
(
self
):
def
_install
(
self
):
path_list
=
[]
path_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