Sharebean is a tool to share files with other.
Base on redbean, tus, router.lua, vue2, wing.css.
Just run build.bat or build.sh
# base usage
# win
sharebean
# linux
./sharebean
# set config
# win
sharebean config.lua
# linux
./sharebean config.luaWhen you create a folder, you can set the folder password and some rules to hide files.
#examples:
# hide all
*
# hide *.lua
*.lua
# just show *.jpg
*
*.jpg
# hide scripts
*.js
*.lua
# just show image
*
*.jpg
*.png
*.gif
*.webpVERSION = '0.0.1' --version
DATA_PATH = "data/" --share data path
TEMP_PATH = "data/_temp/" --temp path,for tus upload job
SUPER_PWD = "sharebean" --invite code to create folder
MAX_PAYLOAD_SIZE = 65535 --max payload size for tus upload
HTTP_PORT = 8080 --http port
CODE_CACHE = true --enable code cache
LOG_PATH = '' --log path