mirror of
https://github.com/dokku/buildpack-nginx.git
synced 2025-06-26 18:40:45 +00:00
Compare commits
6 Commits
v21
...
e26103764e
Author | SHA1 | Date | |
---|---|---|---|
e26103764e | |||
eeb2caf824 | |||
61bfffb6c6 | |||
bcbf61b1f5 | |||
8345d0a22a | |||
8560e5b5a9 |
@ -39,7 +39,7 @@ By default, this buildpack will 404 if a requested file is not found. For static
|
|||||||
```shell
|
```shell
|
||||||
# where the app is named `static-app`
|
# where the app is named `static-app`
|
||||||
# and the desired default response is index.html
|
# and the desired default response is index.html
|
||||||
dokku config:set static-app NGINX_ROOT=index.html
|
dokku config:set static-app NGINX_DEFAULT_REQUEST=index.html
|
||||||
```
|
```
|
||||||
|
|
||||||
### Custom nginx config file
|
### Custom nginx config file
|
||||||
|
@ -67,13 +67,17 @@ if [[ ! -d "${ZLIB_TARBALL%.tar.gz}" ]]; then
|
|||||||
tar xzf "${ZLIB_TARBALL}" && rm -rf "${ZLIB_TARBALL}"
|
tar xzf "${ZLIB_TARBALL}" && rm -rf "${ZLIB_TARBALL}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ! -f "sigil" ]]; then
|
if [[ ! -f "gliderlabs-sigil-amd64" ]]; then
|
||||||
echo "-----> Download and unzip sigil ${SIGIL_VERSION} via http"
|
echo "-----> Download and unzip sigil ${SIGIL_VERSION} via http"
|
||||||
curl -sSL "https://github.com/gliderlabs/sigil/releases/download/v${SIGIL_VERSION}/gliderlabs-sigil_${SIGIL_VERSION}_linux_amd64.tgz" -o "${SIGIL_TARBALL}"
|
curl -sSL "https://github.com/gliderlabs/sigil/releases/download/v${SIGIL_VERSION}/gliderlabs-sigil_${SIGIL_VERSION}_linux_amd64.tgz" -o "${SIGIL_TARBALL}"
|
||||||
tar xzf "${SIGIL_TARBALL}" && rm -rf "${SIGIL_TARBALL}"
|
tar xzf "${SIGIL_TARBALL}" && rm -rf "${SIGIL_TARBALL}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p "$BUILD_DIR/sigil"
|
mkdir -p "$BUILD_DIR/sigil"
|
||||||
|
if [[ ! -f "gliderlabs-sigil-amd64" ]]; then
|
||||||
|
echo " ! Missing gliderlabs-sigil-amd64 binary"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
cp -r gliderlabs-sigil-amd64 "$BUILD_DIR/sigil/sigil"
|
cp -r gliderlabs-sigil-amd64 "$BUILD_DIR/sigil/sigil"
|
||||||
|
|
||||||
cd "nginx-${NGINX_VERSION}"
|
cd "nginx-${NGINX_VERSION}"
|
||||||
|
@ -39,6 +39,7 @@ types {
|
|||||||
application/vnd.wap.wmlc wmlc;
|
application/vnd.wap.wmlc wmlc;
|
||||||
application/vnd.google-earth.kml+xml kml;
|
application/vnd.google-earth.kml+xml kml;
|
||||||
application/vnd.google-earth.kmz kmz;
|
application/vnd.google-earth.kmz kmz;
|
||||||
|
application/wasm wasm;
|
||||||
application/x-7z-compressed 7z;
|
application/x-7z-compressed 7z;
|
||||||
application/x-cocoa cco;
|
application/x-cocoa cco;
|
||||||
application/x-java-archive-diff jardiff;
|
application/x-java-archive-diff jardiff;
|
||||||
|
Reference in New Issue
Block a user