/docker-webdav

Docker container for spinning up a simple webdav server under nginx

Primary LanguageShellMIT LicenseMIT

Nginx WebDAV container

A quick and dirty container that serves data over WEBDAV in an nginx container.

Volumes

Path Description
/data Exported data, if you want to persist, map this path.
/tmp/upload Temporary storage for uploads. Map for speed.
/log A copy of the access log will be written here if USE_PERFLOG=1

Environment variables

Name Default Description
WEBDAV_USERNAME guest If set to guest: world RW w/o password. Otherwise, user gets RW and others get R
WEBDAV_PASSWORD Set to password of the user
WORKER_COUNT 4 Nginx worker processes
WORKER_CONNECTIONS 1024 Nginx max connections
WORKER_USERNAME nginx Run nginx as this user
LISTFORMAT json How we return directory listings
LISTENABLED on on/off
SENDFILE on Nginx sendfile enabled?
TCP_NOPUSH off Nginx tcp_nopush?
TRUSTED_SUBNET all Only allow write from this subnet (CIDR)
LISTENPORT 80 Port to listen to
LDAP_PROTOCOL ldaps Can also be set to unencrypted ldap
LDAP_PORT 636 Which port to connect to
LDAP_SERVER Server address
LDAP_DN The domain path to search, e.g. DC=foobar,DC=com
LDAP_DOMAIN Short hand domain name, e.g. mycompany
LDAP_USER Which username we will bind with
LDAP_PASSWORD Password for the bind user
USE_PERFLOG 0 Also logs to /log/access.log if set to 1, useful for exporting

Resources

Alternatives