fix #5: added DISABLE_WEBDAV flag
All checks were successful
All checks were successful
This commit is contained in:
@@ -34,6 +34,7 @@ services:
|
||||
DISABLE_WEBROOT_CHOWN: 1 # default: 0
|
||||
DISABLE_SFTP: 1 # default: 0
|
||||
DISABLE_STATS: 1 # default: 0
|
||||
DISABLE_WEBDAV: 1 # default: 0
|
||||
```
|
||||
|
||||
The `/data/www` and `/data/logs` directories and their contents will be chowned to `$PUID:$PGID` and chmodded to `0755` for directories and `0644` for files at container start.
|
||||
|
||||
@@ -26,6 +26,7 @@ FPM_MAX_SPARE_SERVERS=${FPM_MAX_SPARE_SERVERS:-3}
|
||||
DISABLE_WEBROOT_CHOWN=${DISABLE_WEBROOT_CHOWN:-0}
|
||||
DISABLE_SFTP=${DISABLE_SFTP:-0}
|
||||
DISABLE_STATS=${DISABLE_STATS:-0}
|
||||
DISABLE_WEBDAV=${DISABLE_WEBDAV:-0}
|
||||
|
||||
export USERNAME
|
||||
export GROUPNAME
|
||||
@@ -51,6 +52,7 @@ export FPM_MAX_SPARE_SERVERS
|
||||
export DISABLE_WEBROOT_CHOWN
|
||||
export DISABLE_SFTP
|
||||
export DISABLE_STATS
|
||||
export DISABLE_WEBDAV
|
||||
|
||||
# run all scripts in order
|
||||
run-parts /app/entrypoint.sh.d
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ ${DISABLE_WEBDAV} -eq 1 ] ; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "# Configuring webdav"
|
||||
|
||||
cat > /etc/nginx/http.d/webdav.conf <<EOF
|
||||
|
||||
Reference in New Issue
Block a user