Route all of the logging through syslog-ng. Add the ability to specify extra syslog-ng config. Simplify the Dockerfile.

This commit is contained in:
Jake Moshenko 2015-03-26 09:21:45 -04:00
parent b1537a01aa
commit 24cf27bd12
32 changed files with 32 additions and 46 deletions

14
conf/init/service/nginx/run Executable file
View file

@ -0,0 +1,14 @@
#! /bin/bash
echo 'Starting nginx'
if [ -f /conf/stack/ssl.key ]
then
echo "Using HTTPS"
/usr/local/nginx/sbin/nginx -c /conf/nginx.conf
else
echo "No SSL key provided, using HTTP"
/usr/local/nginx/sbin/nginx -c /conf/nginx-nossl.conf
fi
echo 'Nginx exited'