fix nginx config (#148)
Signed-off-by: André Bauer <monotek23@gmail.com>
This commit is contained in:
parent
4dd0d5200d
commit
c5c359c658
@ -103,6 +103,9 @@ fi
|
|||||||
if [ "$1" = 'zammad-nginx' ]; then
|
if [ "$1" = 'zammad-nginx' ]; then
|
||||||
check_zammad_ready
|
check_zammad_ready
|
||||||
|
|
||||||
|
# configure nginx
|
||||||
|
sed -e "s#server .*:3000#server ${ZAMMAD_RAILSSERVER_HOST}:${ZAMMAD_RAILSSERVER_PORT}#g" -e "s#server .*:6042#server ${ZAMMAD_WEBSOCKET_HOST}:${ZAMMAD_WEBSOCKET_PORT}#g" -e "s#server_name .*#server_name ${NGINX_SERVER_NAME};#g" -e 's#/var/log/nginx/zammad.\(access\|error\).log#/dev/stdout#g' < contrib/nginx/zammad.conf > /etc/nginx/sites-enabled/default
|
||||||
|
|
||||||
echo "starting nginx..."
|
echo "starting nginx..."
|
||||||
|
|
||||||
exec /usr/sbin/nginx -g 'daemon off;'
|
exec /usr/sbin/nginx -g 'daemon off;'
|
||||||
|
Loading…
Reference in New Issue
Block a user