Commit 94392040 authored by Daniel Baur's avatar Daniel Baur

Small updates to nginx script

parent 1bafa7e3
...@@ -56,7 +56,7 @@ def configure(subject=None): ...@@ -56,7 +56,7 @@ def configure(subject=None):
error_message='Failed to write to {0}.'.format(CONFIG_PATH)) 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: with _backends_update() as backends:
backends[ctx.source.instance.id] = { backends[ctx.source.instance.id] = {
'address': backend_address or ctx.source.instance.host_ip 'address': backend_address or ctx.source.instance.host_ip
......
...@@ -42,8 +42,8 @@ relationships: ...@@ -42,8 +42,8 @@ relationships:
default: default:
function: add_backend function: add_backend
kwargs: kwargs:
# port: { get_property: [ TARGET, backend_app_port ] } port: 80 # currently ignored by script # { get_property: [ TARGET, backend_app_port ] }
# maxconn: { get_property: [ TARGET, backend_max_conn ] } maxconn: 1000 # currently ignored by script # { get_property: [ TARGET, backend_max_conn ] }
# backend_address: (optional, defaults to host_ip) # backend_address: (optional, defaults to host_ip)
unlink: unlink:
implementation: scripts/nginx/nginx.py implementation: scripts/nginx/nginx.py
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment