Node File Manager Server - simple interface to files on a server (auth, upload, zip folders, ...)
4.2K
For more info see https://www.npmjs.com/package/node-file-manager-esm

File manager web server based on Node.js with Koa, Angular.js and Bootstrap, updated to use a recent Koa and be mount compatible and is rewritten to be an ECMAScript Module (or Babel). Has multi file upload. Reduced dependencies. Usable from cli.
Supported: ESM-importable, standalone, docker
These are relevant for the container
FM_PORT -- [5000] The server port to use, if no port param was given, tries FM_PORT then PORTFM_SECURE -- Is off by default! Use BASIC-AUTH with the htpasswd of the path provided. To use FM_USER or --user, set FM_SECURE=trueFM_USER -- If FM_SECURE is used (or FM_SECURE=true), users can be added manually. pw can be a clear password or a password hash created by htpasswd. It will ignore any htpasswd file from FM_SECURE. Example FM_USER="adam:adam123\neve:eve123"FM_MAXSIZE -- [300] Set the max file size for uploads in MBFM_LOGGING -- Output logging info [using just * resolves to fm:* and can be set as environment variable with DEBUG=fm:* as well. FM_LOGGING=traffic will only show fm:traffic] To see all possible output, set DEBUG=*FM_FILTER -- ["zip|tar.gz|7z|..."] Important files to filter for. The pattern is seperated by |. Example: zip|mp4|txtFM_MIMEFILTER -- ["video/|audio/|image/*"] Only for file selection upload dialog in the web interface. Example: video/*|image/*FM_NAME -- ["File Manager"] Overwrite the web ui titleFor more details see:
https://www.npmjs.com/package/node-file-manager-esm
Exposed are
/data for the folder to use/logs for the folder to save any logs to/secure for the folder where the htpasswd file is (to be used as FM_SECURE=/secure/htpasswd)\> docker run -p 5000:5000 -it --volume D:\:/data --name node-filemanager-esm bananaacid/docker-node-filemanager-esm
--directory and --secure (v3.2.0)version: '3.3'
services:
file-manager:
image: bananaacid/docker-node-filemanager-esm:latest
restart: unless-stopped
container_name: file-manager
hostname: file-manager
environment:
FM_FILTER: "zip|tar.gz|7z|7zip|tar|gz|tgz|tbz|tar.bz2|tar.bz|txt|md|doc|docx|otf|ppt|pptx|xls|xlsx|csv|indd|jpg|jpeg|heic|heif|png|ps|svg|ai|avi|mp4|mpg|wav|flac|mpeg|mov"
FM_MIMEFILTER: "video/*|audio/*|image/*"
FM_SECURE:
FM_USER:
FM_MAXSIZE: 300
FM_LOGGING: "*"
FM_NAME:
expose:
- "5000"
volumes:
- /data
- /logs
- /secure
networks:
filemanager:
Content type
Image
Digest
Size
62.8 MB
Last updated
over 4 years ago
docker pull bananaacid/docker-node-filemanager-esm