6895a5ba7a
Updated neutron to use an Nginx sidecar to terminate internal TLS rather than using Apache with a separate RPC servers. Multiple RPC servers (in sidecar) causes communication issues with RabbitMQ causing expected errors. Change-Id: Iaa6d3d64b730a54b1b85a338517bcb5be1842bda Signed-off-by: Tin Lam <tin@irrational.io>
18 lines
231 B
Smarty
18 lines
231 B
Smarty
#!/bin/sh
|
|
set -xe
|
|
|
|
COMMAND="${@:-start}"
|
|
|
|
start () {
|
|
envsubst < /etc/nginx/nginx.conf > /tmp/nginx.conf
|
|
cat /tmp/nginx.conf
|
|
nginx -t -c /tmp/nginx.conf
|
|
exec nginx -c /tmp/nginx.conf
|
|
}
|
|
|
|
stop () {
|
|
nginx -s stop
|
|
}
|
|
|
|
$COMMAND
|