Sign inSign up

rickraven/wdstorage

By rickraven

•Updated 9 months ago

Simple web file storage

Image
0

1.1K

rickraven/wdstorage repository overview

⁠wdstorage

A simple and lightweight implementation of nginx autoindex⁠ with the ability to upload and delete files via a web interface.

The project consists of a pre-configured nginx and launch scripts packaged into a docker image.

Modern, clean look with breadcrumbs.

pic1

Upload multiple files without any backend, just WebDav & AJAX.

pic2

⁠Deploy as docker image

Simple command:

docker run --rm -p 8080:8080 rickraven/wdstorage

Then you can visit http://localhost:8080/ in your browser.

Example docker-compose.yml for wdstorage:

services:
  webstorage:
    image: rickraven/wdstorage:1.0
    container_name: webstorage
    environment:
      - WDSTORAGE_WORKDIR=/data/mydata
    ports:
      - 80:8080
    volumes:
      - wdstorage-data:/data/mydata

volumes:
  wdstorage-data:

List of environment variables:

ParameterDafaultDescription
WDSTORAGE_WORKDIR/dataDirectory to store files
WDSTORAGE_PREFIX/Serving http requests on prefix
WDSTORAGE_PORT8080Port on which the nginx will be served

By default, the container runs as the nginx user (uid: 100, gid: 101). To upload files, the working directory must be writable by the user. If ports up to 1024 are required, the container must run as the root user.

⁠Credits

Based on Nginx-Autoindex⁠ by Kuba Pilecki⁠.

Tag summary

Content type

Image

Digest

sha256:d6ecb19a6…

Size

5.3 MB

Last updated

9 months ago

docker pull rickraven/wdstorage