Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Daniel Baur
cloudify3
Commits
94392040
Commit
94392040
authored
Jun 16, 2015
by
Daniel Baur
Browse files
Small updates to nginx script
parent
1bafa7e3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
ghost-openstack/scripts/postgre/postgre.py
ghost-openstack/scripts/postgre/postgre.py
+1
-1
ghost-openstack/types/nginx.yaml
ghost-openstack/types/nginx.yaml
+2
-2
No files found.
ghost-openstack/scripts/postgre/postgre.py
View file @
94392040
...
...
@@ -56,7 +56,7 @@ def configure(subject=None):
error_message
=
'Failed to write to {0}.'
.
format
(
CONFIG_PATH
))
def
add_backend
(
backend_address
=
None
):
def
add_backend
(
port
,
maxconn
,
backend_address
=
None
):
with
_backends_update
()
as
backends
:
backends
[
ctx
.
source
.
instance
.
id
]
=
{
'address'
:
backend_address
or
ctx
.
source
.
instance
.
host_ip
...
...
ghost-openstack/types/nginx.yaml
View file @
94392040
...
...
@@ -42,8 +42,8 @@ relationships:
default
:
function
:
add_backend
kwargs
:
#
port: { get_property: [ TARGET, backend_app_port ] }
#
maxconn: { get_property: [ TARGET, backend_max_conn ] }
port
:
80
# currently ignored by script #
{ get_property: [ TARGET, backend_app_port ] }
maxconn
:
1000
# currently ignored by script #
{ get_property: [ TARGET, backend_max_conn ] }
# backend_address: (optional, defaults to host_ip)
unlink
:
implementation
:
scripts/nginx/nginx.py
...
...
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