This repository has been archived on 2020-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
quay/conf/init/service/nginx/run
Jimmy Zelinskie 6a681bb748 move nginx
2016-08-10 16:14:54 -04:00

14 lines
257 B
Bash
Executable file

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