lan eb9a656ee1 add:前端判断文件大小
add:自定义删除过期文件间隔,修复因间隔过短导致还没下载文件就没了
2022-12-15 16:49:23 +08:00
2022-12-14 00:02:30 +08:00
2022-12-13 11:25:42 +08:00
2022-12-15 16:34:18 +08:00
2022-12-12 11:11:45 +08:00
2022-12-14 12:31:48 +08:00
2022-12-14 01:32:46 +08:00
2022-12-11 11:07:38 +08:00
2022-12-15 16:34:18 +08:00
2022-12-15 16:49:23 +08:00
2022-12-15 16:49:23 +08:00
2022-12-15 16:49:23 +08:00
2022-12-13 21:16:41 +08:00
2022-12-15 16:34:18 +08:00

File Express Cabinet - Lite

FileCodeBox - Lite

share text and files with anonymous passwords, and take files like express delivery


简体中文 | English

Main features

  • lightweight and simple: Fastapi + Sqlite3 + Vue2 + ElementUI
  • easy upload: copy and paste, drag and drop
  • multiple types: Text, File
  • explosion Prevention: error count limit
  • prevent abuse: IP address limits the number of uploads
  • password sharing: random password, file access, custom times, and validity period
  • anonymous sharing: no registration, no login
  • management Panel: View all files and delete them
  • one-click deployment: docker one-click deployment

Future Plan

December 14, 2022 This project is mainly light-weight, mainly single-user, offline environment, so there is no need to add too many things, so in fact, the basic functions of this project have been completed, and the rest is to maintain and improve the existing functions.

No new major functions will be added. If there are new functions, it will be our Pro version. Of course, it will continue to be open source. It is an honor to be open source with @veoco. I learned from his code Many, I basically used the Django set before, and only used Fastapi. Many of his writing methods have benefited me a lot, and I have a deeper understanding of Fastapi, so I will also use Fastapi in the Pro version .

According to some current feedback, I hope to add multi-user functions and multi-storage engines, etc. Welcome to continue to give comments and join us in joint development.

If you have better ideas and suggestions, welcome to file an issue.

Preview

Demo

https://share.lanol.cn

Send

寄文件 寄文本
寄文本

Receive

取件 取件码错误
取文件

Manage

管理

Deployment method

One-click Docker deployment

docker run -d --restart=always -p 12345:12345 -v /opt/FileCodeBox/:/app/data --name filecodebox lanol/filecodebox:latest

Other methods

For reference only, historical version->部署文档

Configuration file

if you need to modify the configuration, you can put the file in /opt/FileCodeBox/ directory and name it .env , and then restart the container. If it is not Docker, you need to create a data folder in the same directory as the project, and then create a .env file


```dotenv
# 端口
PORT=12345
# Sqlite数据库文件
DATABASE_URL=sqlite+aiosqlite:///database.db
# 静态文件夹
DATA_ROOT=./static
# 静态文件夹URL
STATIC_URL=/static
# 错误次数
ERROR_COUNT=5
# 错误限制分钟数
ERROR_MINUTE=10
# 上传次数
UPLOAD_COUNT=60
# 上传限制分钟数
UPLOAD_MINUTE=1
# 删除过期文件的间隔(分钟)
DELETE_EXPIRE_FILES_INTERVAL=10
# 管理地址
ADMIN_ADDRESS=admin
# 管理密码
ADMIN_PASSWORD=admin
# 文件大小限制,默认10MB
FILE_SIZE_LIMIT=10
# 网站标题
TITLE=文件快递柜
# 网站描述
DESCRIPTION=FileCodeBox,文件快递柜,口令传送箱,匿名口令分享文本,文件,图片,视频,音频,压缩包等文件
# 网站关键词
KEYWORDS=FileCodeBox,文件快递柜,口令传送箱,匿名口令分享文本,文件,图片,视频,音频,压缩包等文件
# 存储引擎
STORAGE_ENGINE=filesystem

Status

Alt

Disclaimer

this project is open source for learning only and cannot be used for any illegal purposes. Otherwise, you will be responsible for the consequences and have nothing to do with yourself. Please keep the project address. Thank you.

S
Description
FileCodeBox fork with Orion 1Panel custom image/app packaging
Readme 53 MiB
Languages
Python 99.8%
Dockerfile 0.2%