mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
Add CNAME option
When a repo have a CNAME file, it will use the URL on it to map the server_name on ngnix
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user