Merge pull request #657 from arthurnn/CNAME_option

Add CNAME option
This commit is contained in:
Jeff Lindsay
2014-08-19 16:28:43 -05:00
2 changed files with 10 additions and 0 deletions

View File

@@ -25,6 +25,10 @@ EOF
SSL_DIRECTIVES=""
fi
if [[ -f "$DOKKU_ROOT/$APP/CNAME" ]]; then
hostname=$(< "$DOKKU_ROOT/$APP/CNAME" )
fi
# ssl based nginx.conf
if [[ -n "$SSL_INUSE" ]]; then
cat<<EOF > $DOKKU_ROOT/$APP/nginx.conf