- Notifications
You must be signed in to change notification settings - Fork 1k
Deployment Tutorial
Go to Application Store -> Utility Tools -> FileCodeBox
Update: Container -> Select -> More -> Edit -> Force Pull Image -> Confirm
Current version is 1.6
Default information
Backend address: /#/admin
Admin password: FileCodeBox2023
Supports AMD & ARM
One-Click Installation
docker run -d --restart=always -p 12345:12345 -v /opt/FileCodeBox/:/app/data --name filecodebox lanol/filecodebox:betaOne-Click Update
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:betadocker run -d --restart=always -p 12345:12345 -v /opt/FileCodeBox/:/app/data --name filecodebox lanol/filecodebox:latestdocker run -d --restart=always -p 12345:12345 -v /opt/FileCodeBox/:/app/data --name filecodebox lanol/filecodebox:arm// Update container docker pull lanol/filecodebox:beta // Stop and remove container docker stop filecodebox && docker rm filecodebox // Re-run container docker run -d --restart=always -p 12345:12345 -v /opt/FileCodeBox/:/app/data --name filecodebox lanol/filecodebox:latestThis version has significant changes. If you encounter problems, try clearing the /opt/FileCodeBox directory and feel free to report any issues. Note: For first-time installation, check Docker logs to get the initial password and backend address. Refer to the command below:
docker logs filecodeboxLocal File List in Backend: To display, move server files to the /opt/FileCodeBox/data/locals directory.
To modify the configuration, save the following content as a .env file and place it in the /opt/FileCodeBox/ directory, then restart the container. If not using Docker, create a data folder in the project directory and create the .env file within that folder.
# PortPORT=12345# Sqlite database fileDATABASE_URL=sqlite+aiosqlite:///database.db# Static files directoryDATA_ROOT=./static# Static files URLSTATIC_URL=/static# Enable uploadENABLE_UPLOAD=True# Error countERROR_COUNT=5# Error limit in minutesERROR_MINUTE=10# Upload countUPLOAD_COUNT=60# Upload limit in minutesUPLOAD_MINUTE=1# Interval to delete expired files (minutes)DELETE_EXPIRE_FILES_INTERVAL=10# Admin addressADMIN_ADDRESS=admin# Admin passwordADMIN_PASSWORD=admin# File size limit, default 10MBFILE_SIZE_LIMIT=10# Website titleTITLE=文件快递柜# Website descriptionDESCRIPTION=FileCodeBox, 文件快递柜, 密码传送箱, 匿名密码分享文本, 文件, 图片, 视频, 音频, 压缩包等文件# Website keywordsKEYWORDS=FileCodeBox, 文件快递柜, 密码传送箱, 匿名密码分享文本, 文件, 图片, 视频, 音频, 压缩包等文件# Storage engineSTORAGE_ENGINE=filesystem# Parameters for Aliyun OSS if used:# Aliyun account AccessKeyKeyId=Your Aliyun Account AccessKey# Aliyun account AccessKeySecretKeySecret=Your Aliyun Account AccessKeySecret# Region node of Aliyun OSS BucketOSS_ENDPOINT=Node of the Aliyun OSS Bucket# BucketName of Aliyun OSS BucketBUCKET_NAME=Your Aliyun OSS Bucket Name