From 6ecfdbdf2e6d82a2432141c8961801d5bb6120bc Mon Sep 17 00:00:00 2001 From: Ric Harvey Date: Tue, 16 Aug 2016 11:29:35 +0100 Subject: [PATCH] adding nginx config support --- scripts/start.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/start.sh b/scripts/start.sh index b9eebad..fee19fc 100644 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -51,6 +51,15 @@ if [ ! -d "/var/www/html/.git" ]; then fi fi +# Enable custom nginx config files if they exist +if [ -f /var/www/html/conf/nginx/nginx-site.conf ]; then + cp /var/www/html/conf/nginx/nginx-site.conf /etc/nginx/sites-available/default.conf +fi + +if [ -f /var/www/html/conf/nginx/nginx-site-ssl.conf ]; then + cp /var/www/html/conf/nginx/nginx-site-ssl.conf /etc/nginx/sites-available/default-ssl.conf +fi + # Display PHP error's or not if [[ "$ERRORS" != "1" ]] ; then echo php_flag[display_errors] = off >> /etc/php5/php-fpm.conf