1
0
Fork 0
 
 
 
 
 
Go to file
Ambrose Chua af66932295 Improvements to form submissions, show images 2021-05-07 21:34:18 +08:00
.github/ISSUE_TEMPLATE Update issue templates 2019-07-12 23:20:44 +08:00
assets Improvements to form submissions, show images 2021-05-07 21:34:18 +08:00
views Improvements to form submissions, show images 2021-05-07 21:34:18 +08:00
.drone.yml Update .drone.yml 2018-12-08 22:42:46 +08:00
.gitignore Update to bootstrap 4.0.0 2018-02-15 00:31:29 +08:00
Dockerfile Add command tool and Dockerfile 2018-03-10 23:26:23 +09:00
Dockerfile.env Update Dockerfile.env 2018-12-02 02:09:00 +08:00
Dockerfile.pwn Add pwn 2018-12-08 15:19:45 +08:00
LICENSE Create LICENSE 2018-09-26 22:36:12 +08:00
README.md Improve README 2021-05-07 17:56:29 +08:00
index.js Improvements to form submissions, show images 2021-05-07 21:34:18 +08:00
package-lock.json Upgrade to Bootstrap 5, and improve UI 2021-05-07 20:57:15 +08:00
package.json Upgrade to Bootstrap 5, and improve UI 2021-05-07 20:57:15 +08:00

README.md

file-manager

A basic node.js file manager.

Features

  • Simple authentication
  • Directory browsing
    • Filesize
    • Permissions
    • Owner
  • Folder creation
  • File uploads
    • Bulk file uploads
    • Large file uploads (sharded)
  • File/folder renaming
  • Bulk file/folder selection
    • Delete
      • Recursive directory delete
    • Move
    • Copy
    • Download archive
    • Change permissions
  • Remote commands

Screenshots

These screenshots are not up-to-date.

Usage

docker run --rm -it -v $PWD:/data -p 8080:8080 serverwentdown/file-manager

OR

git clone https://github.com/serverwentdown/file-manager.git ~/path/to/file-manager
node ~/path/to/file-manager/index.js
# or
npm i -g https://github.com/serverwentdown/file-manager.git
file-manager

Options

The following environmental variables can be used to configure file-manager.

SHELL=

Enable the shell feature, which allows users to start a login shell (when set to login) or the binary specified by this option (example: /bin/bash). Be careful when enabling this feature as anyone with access to this portal can execute any command on your machine.

CMD=

Set to something other than "false" to enable running single commands in the default shell, usually /bin/sh. Be careful when enabling this feature as anyone with access to this portal can execute any command on your machine.

PORT=

Listen on $PORT. Default: 8080

KEY=

Setting this variable enables authentication using TOTP (RFC6238). $KEY is a base32 encoded shared secret. This key is only a weak means of protection as it is succeptable to brute-force. You can generate one from here or manually.