svenstaro/miniserve

Upload not allowed to this directory

tonycody opened this issue · 3 comments

version: "3.8"
services:
  miniserve:
    image: svenstaro/miniserve:0.24.0-alpine
    container_name: miniserve
    restart: always
    ports:
      - "8080:8080"
    command: /app/data/
    environment:
      - MINISERVE_TITLE=玩蜂文件共享服务
      - MINISERVE_MKDIR_ENABLED=true
      - MINISERVE_ALLOWED_UPLOAD_DIR=true
      - MINISERVE_HIDE_VERSION_FOOTER=true
      - MINISERVE_SHOW_WGET_FOOTER=true
      - MINISERVE_DIRS_FIRST=true
      - MINISERVE_README=true
    volumes:
      - /opt/miniserve/data:/app/data:rw

image
image
image

If you use environment variables, you'll have to always specify a full path currently. I'd accept a PR to change that.

This should be fixed as of miniserve v0.25.0. Please re-open if it isn't.