allow custom nginx.conf and enable lua support closes #128

This commit is contained in:
Ric Harvey
2017-08-18 15:04:42 +01:00
parent 1b427c9c9b
commit 520f0ab751
3 changed files with 20 additions and 4 deletions

View File

@@ -69,6 +69,10 @@ if [ -f "/var/www/html/composer.lock" ]; then
fi
# Enable custom nginx config files if they exist
if [ -f /var/www/html/conf/nginx/nginx.conf ]; then
cp /var/www/html/conf/nginx/nginx.conf /etc/nginx/nginx.conf
fi
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