-
-
Notifications
You must be signed in to change notification settings - Fork 585
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
33 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,191 +1,62 @@ | ||
<div align="center"> | ||
<h1>FileCodeBox-Lite</h1> | ||
<h1>File Delivery Cabinet - Lite</h1> | ||
<h2>FileCodeBox-Lite</h2> | ||
<p><em>Share texts and files anonymously with passwords, just like picking up a package</em></p> | ||
<p>Join our QQ group: 739673698</p> | ||
<p><em>Anonymous passcode sharing of text and files, picking up files just like picking up express deliveries</em></p> | ||
<p>Join our QQ Group: 739673698</p> | ||
</div> | ||
|
||
![banner](https://fastly.jsdelivr.net/gh/vastsa/FileCodeBox@V1.6/static/banners/img_1.png) | ||
|
||
--- | ||
|
||
[Simplified Chinese](./readme.md) | [English](./readme_en.md) | ||
|
||
## Main Features | ||
|
||
- [x] **Lightweight:** Built with FastAPI + Sqlite3 + Vue2 + ElementUI | ||
- [x] **Easy Upload:** Support copy-paste and drag-and-drop selection | ||
- [x] **Various Types:** Supports text and file sharing | ||
- [x] **Brute-force Protection:** Error limit on passwords | ||
- [x] **Abuse Prevention:** IP limits on upload attempts | ||
- [x] **Password Sharing:** Random password for accessing files, customizable access counts, and expiration | ||
- [x] **Internationalization:** Supports both Chinese and English | ||
- [x] **Anonymous Sharing:** No need for registration or login | ||
- [x] **Management Panel:** View and delete files | ||
- [x] **One-Click Deployment:** Support for Docker deployment | ||
- [x] **Free Extension:** Supports S3 protocol and local file stream; can add new storage engines in storage file as needed | ||
- [x] **Simple and Clear:** Great for beginners | ||
- [x] **Terminal Download:** Terminal command `wget https://share.lanol.cn/share/select?code=83432` | ||
|
||
## Deployment Methods | ||
|
||
### 1Panel One-Click Deployment | ||
|
||
Go to Application Store -> Utilities -> FileCodeBox | ||
![img_6.png](./.github/images/img_6.png) | ||
**Update:** Container -> Select -> More -> Edit -> Force Pull Image -> Confirm | ||
|
||
### One-Click Deployment in BaoTa Application Store | ||
|
||
Current version is 1.6 | ||
![img](https://img.065065.xyz/file/966c5239926f46e03bd91.png) | ||
|
||
### Docker One-Click Deployment | ||
|
||
**Version 2.0**, work in progress | ||
|
||
Default Info | ||
|
||
Backend Address: `/#/admin` | ||
|
||
Admin Password: `FileCodeBox2023` | ||
|
||
*Supports AMD & ARM* | ||
|
||
**One-Click Install** | ||
|
||
```bash | ||
docker run -d --restart=always -p 12345:12345 -v /opt/FileCodeBox/:/app/data --name filecodebox lanol/filecodebox:beta | ||
``` | ||
|
||
**One-Click Update** | ||
|
||
```bash | ||
docker pull lanol/filecodebox:beta && docker stop filecodebox && docker rm filecodebox && docker run -d --restart=always -p 12345:12345 -v /opt/FileCodeBox/:/app/data --name filecodebox lanol/filecodebox:beta | ||
``` | ||
|
||
**Version 1.6 AMD** | ||
|
||
```bash | ||
docker run -d --restart=always -p 12345:12345 -v /opt/FileCodeBox/:/app/data --name filecodebox lanol/filecodebox:latest | ||
``` | ||
|
||
**Version 1.6 ARM** | ||
|
||
```bash | ||
docker run -d --restart=always -p 12345:12345 -v /opt/FileCodeBox/:/app/data --name filecodebox lanol/filecodebox:arm | ||
``` | ||
|
||
### Update Methods | ||
|
||
```bash | ||
// Update the container | ||
docker pull lanol/filecodebox:beta | ||
// Stop and remove the container | ||
docker stop filecodebox && docker rm filecodebox | ||
// Re-run the container | ||
docker run -d --restart=always -p 12345:12345 -v /opt/FileCodeBox/:/app/data --name filecodebox lanol/filecodebox:latest | ||
``` | ||
|
||
### Notes on Version 1.6 | ||
|
||
This version has significant changes. If issues occur, try clearing the /opt/FileCodeBox directory. Feel free to provide feedback. **Note:** For first-time installations, check Docker logs for the initial password and backend address, as shown below: | ||
|
||
```bash | ||
docker logs filecodebox | ||
``` | ||
|
||
**Backend Local File List**: Move server files to the /opt/FileCodeBox/data/locals directory for display. | ||
|
||
## Preview | ||
|
||
### Example Site | ||
|
||
[https://share.lanol.cn](https://share.lanol.cn) | ||
<div align="center" style=text-align: center;margin: 20px 0;> | ||
<a href="./readme.md">简体中文</a> | | ||
<a href="./readme_en.md">English</a> | | ||
<a href="[https://github.com/vastsa/FileCodeBox/wiki/%E9%83%A8%E7%BD%B2%E6%95%99%E7%A8%8B](https://github.com/vastsa/FileCodeBox/wiki/Deployment-Tutorial)">Deployment Guide</a> | | ||
<a href="[https://github.com/vastsa/FileCodeBox/wiki/%E9%83%A8%E7%BD%B2%E6%95%99%E7%A8%8B](https://github.com/vastsa/FileCodeBox/wiki/Frequently-asked-questions)">FAQ</a> | ||
</div> | ||
|
||
### Screenshots | ||
## Screenshots | ||
|
||
<table style="width:100%"> | ||
<tr style="width: 100%"> | ||
<td style="width: 50%"><img src="./.github/images/img.png" alt="File Sharing"></td> | ||
<td style="width: 50%"><img src="./.github/images/img_1.png" alt="File Sharing"></td> | ||
<td style="width: 50%"><img src="./.github/images/img.png" alt="Send Files"></td> | ||
<td style="width: 50%"><img src="./.github/images/img_1.png" alt="Send Files"></td> | ||
</tr> | ||
<tr style="width: 100%"> | ||
<td style="width: 50%"><img src="./.github/images/img_2.png" alt="File Sharing"></td> | ||
<td style="width: 50%"><img src="./.github/images/img_3.png" alt="File Sharing"></td> | ||
<td style="width: 50%"><img src="./.github/images/img_2.png" alt="Send Files"></td> | ||
<td style="width: 50%"><img src="./.github/images/img_3.png" alt="Send Files"></td> | ||
</tr> | ||
<tr style="width: 100%"> | ||
<td style="width: 50%"><img src="./.github/images/img_4.png" alt="File Sharing"></td> | ||
<td style="width: 50%"><img src="./.github/images/img_5.png" alt="File Sharing"></td> | ||
<td style="width: 50%"><img src="./.github/images/img_4.png" alt="Send Files"></td> | ||
<td style="width: 50%"><img src="./.github/images/img_5.png" alt="Send Files"></td> | ||
</tr> | ||
</table> | ||
|
||
## Configuration File (for versions 1.7 and below) | ||
|
||
To modify the configuration, save the following content as a `.env` file in the `/opt/FileCodeBox/` directory, then restart the container. If not using Docker, create a `data` folder in the project directory and place the `.env` file inside. | ||
|
||
```dotenv | ||
# Port | ||
PORT=12345 | ||
# Sqlite database file | ||
DATABASE_URL=sqlite+aiosqlite:///database.db | ||
# Static folder | ||
DATA_ROOT=./static | ||
# Static folder URL | ||
STATIC_URL=/static | ||
# Enable uploads | ||
ENABLE_UPLOAD=True | ||
# Error limit | ||
ERROR_COUNT=5 | ||
# Error limit in minutes | ||
ERROR_MINUTE=10 | ||
# Upload limit | ||
UPLOAD_COUNT=60 | ||
# Upload limit in minutes | ||
UPLOAD_MINUTE=1 | ||
# Interval for deleting expired files (in minutes) | ||
DELETE_EXPIRE_FILES_INTERVAL=10 | ||
# Admin address | ||
ADMIN_ADDRESS=admin | ||
# Admin password | ||
ADMIN_PASSWORD=admin | ||
# File size limit, default 10MB | ||
FILE_SIZE_LIMIT=10 | ||
# Website title | ||
TITLE=FileCodeBox | ||
# Website description | ||
DESCRIPTION=FileCodeBox, file delivery cabinet, password transfer box, anonymous password sharing of text, files, images, videos, audio, compressed files, and other types of files | ||
# Website keywords | ||
KEYWORDS=FileCodeBox, file delivery cabinet, password transfer box, anonymous password sharing of text, files, images, videos, audio, compressed files, and other types of files | ||
# Storage engine | ||
STORAGE_ENGINE=filesystem | ||
# If using Alibaba Cloud OSS service, create these additional parameters: | ||
# Alibaba Cloud Account AccessKey | ||
KeyId=Alibaba Cloud Account AccessKey | ||
# Alibaba Cloud Account AccessKeySecret | ||
KeySecret=Alibaba Cloud Account AccessKeySecret | ||
# Alibaba Cloud OSS Bucket region node | ||
OSS_ENDPOINT=Alibaba Cloud OSS Bucket region node | ||
# Alibaba Cloud OSS Bucket name | ||
BUCKET_NAME=Alibaba Cloud OSS Bucket name | ||
``` | ||
## Key Features | ||
|
||
- [x] **Lightweight and Simple:** Built on Fastapi + Sqlite3 + Vue3 + ElementUI | ||
- [x] **Easy Upload:** Supports copy-paste and drag-and-drop selection | ||
- [x] **Multiple Types:** Supports text and files | ||
- [x] **Brute-Force Protection:** Limits on wrong attempts | ||
- [x] **Abuse Prevention:** IP-based upload limits | ||
- [x] **Passcode Sharing:** Random passcodes for storing and retrieving files, customizable retries, and expiration periods | ||
- [x] **Internationalization:** Supports Simplified Chinese, Traditional Chinese, English, etc. | ||
- [x] **Anonymous Sharing:** No registration or login required | ||
- [x] **Admin Panel:** View and delete files | ||
- [x] **One-Click Deployment:** Supports Docker one-click deployment | ||
- [x] **Flexible Expansion:** Supports S3 protocol and local file streams, with the ability to add new storage engines in the storage file | ||
- [x] **Simple and Clear:** Ideal for beginner projects | ||
- [x] **Terminal Download:** Terminal command `wget https://share.lanol.cn/share/select?code=83432` | ||
|
||
## Status | ||
## Project Status | ||
|
||
![Alt](https://repobeats.axiom.co/api/embed/7a6c92f1d96ee57e6fb67f0df371528397b0c9ac.svg "Repobeats analytics image") | ||
|
||
## Star History | ||
|
||
[![Star History Chart](https://api.star-history.com/svg?repos=vastsa/FileCodeBox&type=Date)](https://star-history.com/#vastsa/FileCodeBox&Date) | ||
|
||
## Frequently Asked Questions (FAQ) | ||
|
||
1. *413 Request Entity Too Large*: | ||
Nginx limit resolution: | ||
Open your host's `nginx.conf` configuration file, locate it, | ||
Add `client_max_body_size 10m;` within the `http{}` block, | ||
Then restart Nginx. | ||
|
||
## Disclaimer | ||
|
||
This project is open-source and intended for learning purposes only. Do not use it for any illegal activities; any consequences are your own responsibility and unrelated to the author. Please retain the project address when using, thank you. | ||
This project is open-sourced for learning purposes only and shall not be used for any illegal activities. Any consequences are the sole responsibility of the user and have no relation to the author. Please retain the project link when using. Thank you. |