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:
parent
b1537a01aa
commit
24cf27bd12
32 changed files with 32 additions and 46 deletions
2
conf/init/service/nginx/log/run
Executable file
2
conf/init/service/nginx/log/run
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec logger -i -t nginx
|
14
conf/init/service/nginx/run
Executable file
14
conf/init/service/nginx/run
Executable 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'
|
Reference in a new issue