Sign inSign up

haohanyang/webdav

By haohanyang

•Updated about 16 hours ago

Simple WebDav Server

Image
Networking
Web servers
Databases & storage
0

1.2K

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:1a4fd5225…

Size

18 MB

Last updated

about 16 hours ago

docker pull haohanyang/webdav