Sign inSign up

haohanyang/webdav

By haohanyang

Updated 3 months ago

Simple WebDav Server

Image
Networking
Web servers
Databases & storage
0

723

haohanyang/webdav repository overview

WebDAV Server

A minimal WebDAV server written in Go. Serves a local directory over WebDAV with optional HTTP Basic Authentication.

Quick Start

docker run -p 8080:8080 \
  -e WEBDAV_DIR=/data \
  -e WEBDAV_USERNAME=user \
  -e WEBDAV_PASSWORD=secret \
  -v /path/to/files:/data \
  haohanyang/webdav

Without authentication:

docker run -p 8080:8080 \
  -e WEBDAV_DIR=/data \
  -e WEBDAV_NO_AUTH=1 \
  -v /path/to/files:/data \
  haohanyang/webdav

Environment Variables

VariableRequiredDescription
WEBDAV_DIRYesPath to the directory to serve
WEBDAV_USERNAMENo*Basic auth username
WEBDAV_PASSWORDNo*Basic auth password
WEBDAV_NO_AUTHNoSet to any value to disable authentication

* Required unless WEBDAV_NO_AUTH is set.

The server listens on port 8080.

Docker Compose

services:
  webdav:
    image: haohanyang/webdav
    ports:
      - 8080:8080
    environment:
      WEBDAV_DIR: /data
      WEBDAV_USERNAME: admin
      WEBDAV_PASSWORD: admin
      # WEBDAV_NO_AUTH: "true"  # uncomment to disable authentication
    volumes:
      - /path/to/my/data:/data

Source

github.com/haohanyang/webdav

Tag summary

Content type

Image

Digest

sha256:07a335b8a

Size

11.7 MB

Last updated

3 months ago

docker pull haohanyang/webdav