|
| 1 | +<div style="text-align: center"> |
| 2 | +<h1>File Express Cabinet </h1> |
| 3 | +<p><em>share text and files with anonymous passwords, and take files like express delivery </em></p> |
| 4 | +</div> |
| 5 | + |
| 6 | +--- |
| 7 | + |
| 8 | +[English](./README_EN.md) | [简体中文](./README.md) |
| 9 | + |
| 10 | +## Main features |
| 11 | + |
| 12 | +- [x] lightweight and simple: Fastapi + Sqlite3 + Vue2 + ElementUI |
| 13 | +- [x] easy upload: copy and paste, drag and drop |
| 14 | +- [x] multiple types: Text, File |
| 15 | +- [x] explosion Prevention: error count limit |
| 16 | +- [x] prevent abuse: IP address limits the number of uploads |
| 17 | +- [x] password sharing: random password, file access, custom times, and validity period |
| 18 | +- [x] anonymous sharing: no registration, no login |
| 19 | +- [x] management Panel: View all files and delete them |
| 20 | +- [x] one-click deployment: docker one-click deployment |
| 21 | + |
| 22 | +## Preview |
| 23 | + |
| 24 | +### Send |
| 25 | + |
| 26 | +<table style="width: 100%"> |
| 27 | +<tr style="width: 100%"> |
| 28 | +<td style="width: 50%"> |
| 29 | +<img src="https://raw.githubusercontent.com/vastsa/FileCodeBox/master/images/img_1.png" alt="寄文件"> |
| 30 | +</td> |
| 31 | +<td style="width: 50%"> |
| 32 | +<img src="https://raw.githubusercontent.com/vastsa/FileCodeBox/master/images/img_2.png" alt="寄文本"> |
| 33 | +</td> |
| 34 | +</tr> |
| 35 | +<tr style="width: 100%;"> |
| 36 | +<td colspan="2" style="width: 100%;"> |
| 37 | +<img src="https://raw.githubusercontent.com/vastsa/FileCodeBox/master/images/img_3.png" alt="寄文本"> |
| 38 | +</td> |
| 39 | +</tr> |
| 40 | +</table> |
| 41 | + |
| 42 | +### Receive |
| 43 | + |
| 44 | +<table style="width: 100%"> |
| 45 | +<tr style="width: 100%"> |
| 46 | +<td style="width: 50%"> |
| 47 | +<img src="https://raw.githubusercontent.com/vastsa/FileCodeBox/master/images/img_6.png" alt="取件"> |
| 48 | +</td> |
| 49 | +<td style="width: 50%"> |
| 50 | +<img src="https://raw.githubusercontent.com/vastsa/FileCodeBox/master/images/img_5.png" alt="取件码错误"> |
| 51 | +</td> |
| 52 | +</tr> |
| 53 | +<tr style="width: 100%;"> |
| 54 | +<td colspan="2" style="width: 100%;"> |
| 55 | +<img src="https://raw.githubusercontent.com/vastsa/FileCodeBox/master/images/img_4.png" alt="取文件"> |
| 56 | +</td> |
| 57 | +</tr> |
| 58 | +</table> |
| 59 | + |
| 60 | +### Manage |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | +## Deployment method |
| 65 | + |
| 66 | +### One-click Docker deployment |
| 67 | + |
| 68 | +```bash |
| 69 | +docker run -d --restart=always -p 12345:12345 -v /opt/FileCodeBox/:/app/data --name filecodebox lanol/filecodebox:latest |
| 70 | +``` |
| 71 | + |
| 72 | +### Other methods |
| 73 | + |
| 74 | +请参考->[部署文档](https://www.yuque.com/lxyo/work/zd0kvzy7fofx6w7v) |
| 75 | + |
| 76 | +## Configuration file |
| 77 | + |
| 78 | +if you need to modify the configuration, you can put the file in `/opt/FileCodeBox/` directory and name it `.env` , and |
| 79 | +then |
| 80 | +restart the container. |
| 81 | + |
| 82 | +```bash |
| 83 | + |
| 84 | +```dotenv |
| 85 | +# 端口 |
| 86 | +PORT=12345 |
| 87 | +# Sqlite数据库文件 |
| 88 | +DATABASE_URL=sqlite+aiosqlite:///database.db |
| 89 | +# 静态文件夹 |
| 90 | +DATA_ROOT=./static |
| 91 | +# 静态文件夹URL |
| 92 | +STATIC_URL=/static |
| 93 | +# 错误次数 |
| 94 | +ERROR_COUNT=5 |
| 95 | +# 错误限制分钟数 |
| 96 | +ERROR_MINUTE=10 |
| 97 | +# 上传次数 |
| 98 | +UPLOAD_COUNT=60 |
| 99 | +# 上传限制分钟数 |
| 100 | +UPLOAD_MINUTE=1 |
| 101 | +# 管理地址 |
| 102 | +ADMIN_ADDRESS=admin |
| 103 | +# 管理密码 |
| 104 | +ADMIN_PASSWORD=admin |
| 105 | +# 文件大小限制,默认10MB |
| 106 | +FILE_SIZE_LIMIT=10 |
| 107 | +# 网站标题 |
| 108 | +TITLE=文件快递柜 |
| 109 | +# 网站描述 |
| 110 | +DESCRIPTION=FileCodeBox,文件快递柜,口令传送箱,匿名口令分享文本,文件,图片,视频,音频,压缩包等文件 |
| 111 | +# 网站关键词 |
| 112 | +KEYWORDS=FileCodeBox,文件快递柜,口令传送箱,匿名口令分享文本,文件,图片,视频,音频,压缩包等文件 |
| 113 | +# 存储引擎 |
| 114 | +STORAGE_ENGINE=filesystem |
| 115 | +``` |
0 commit comments