mirror of
https://github.com/dokku/buildpack-nginx.git
synced 2025-01-13 20:36:23 +00:00
User provided nginx conf
This commit is contained in:
parent
dd3ac20c6d
commit
2e8fe7300c
@ -138,6 +138,9 @@ EOF
|
||||
|
||||
cd "$CUR_DIR"
|
||||
|
||||
# Check for user provided nginx conf
|
||||
if [ -f "$BUILD_DIR/app-nginx.conf.sigil" ] || [ -f "$BUILD_DIR/nginx.conf.erb" ] ; then
|
||||
|
||||
# Add support for app-nginx.conf.sigil
|
||||
if [ -f "$BUILD_DIR/app-nginx.conf.sigil" ] ; then
|
||||
echo "-----> Using user provided app-nginx.conf.sigil"
|
||||
@ -148,7 +151,7 @@ fi
|
||||
if [ -f "$BUILD_DIR/nginx.conf.erb" ] ; then
|
||||
echo "-----> DEPRECATED: using user provided nginx.conf.erb"
|
||||
cp "$BUILD_DIR/nginx.conf.erb" "$BUILD_DIR/nginx/nginx.conf.erb"
|
||||
|
||||
fi
|
||||
# ...else, force default file
|
||||
else
|
||||
echo "-----> Using default app-nginx.conf.sigil"
|
||||
|
Loading…
Reference in New Issue
Block a user