Introduction:

In previous articles, I wrote about the deployment plan for Pingvin Share. Many friends recommended FileCodeBox to me. After deploying and using it, I feel it is indeed very good, so I wrote a deployment tutorial to help everyone deploy.

Comparison:

FileCodeBoxPingvin Share
Easy Upload
Prevent Brute Force/Pickup Code Abuse
Password Sharing
Anonymous Sharing
Admin Panel
Two-Step Login Verification
Aliyun OSS Integration
File Security Monitoring
Ease of Deployment (More stars = Easier)🌟🌟🌟🌟🌟🌟🌟🌟🌟

Screenshots:

Deployment Method:

Step One: Update Source

Ubuntu/Debian:

apt update -y && apt upgrade -y    

Centos:

yum update -y && yum upgrade -y   

Step Two: Install and Configure Docker

Install Docker:

curl -fsSL https://get.docker.com -o get-docker.sh && sudo sh ./get-docker.sh

Start Docker:

sudo systemctl start docker

Set Docker to start automatically at boot:

sudo systemctl enable docker

Step Three: Install and Start the FileCodeBox Container

AMD system (you can change the port number on the left to any open port):

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

ARM system (you can change the port number on the left to any open port):

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

After deployment, you can visit http://<your-ip>:12345 (change the port number to the one you entered) to access "FilecodeBox."

Step Four: Configure Management Files

Open the configuration file:

nano /opt/FileCodeBox/.env

The content inside is as follows:

INSTALL=1.6
DEBUG=False
DATABASE_FILE=data/database.db
PORT=12345
DATA_ROOT=./data/static
LOCAL_ROOT=./data/local
STATIC_URL=/static
BANNERS=[{'text': 'FileCodeBox', 'url': 'https://github.com/vastsa/FileCodeBox', 'src': '/static/banner>
ENABLE_UPLOAD=True
MAX_DAYS=7
ERROR_COUNT=5
ERROR_MINUTE=5
UPLOAD_COUNT=60
UPLOAD_MINUTE=1
DELETE_EXPIRE_FILES_INTERVAL=10
ADMIN_ADDRESS=207e89132a73424f
ADMIN_PASSWORD=b543a1f981b8484a
FILE_SIZE_LIMIT=10485760
TITLE=File Delivery Cabinet
DESCRIPTION=FileCodeBox, File Delivery Cabinet, Password Delivery Box, Anonymous Password Sharing Text, File
KEYWORDS=FileCodeBox, File Delivery Cabinet, Password Delivery Box, Anonymous Password Sharing Text, File
STORAGE_ENGINE=filesystem
STORAGE_CONFIG={}

The ADMIN_ADDRESS is the admin URL, i.e., "http://:12345/ADMIN_ADDRESS" is the admin backend, here it is "http://127.0.0.1:12345/207e89132a73424f."
The login password is "ADMIN_PASSWORD," here it is "b543a1f981b8484a."
The above content can be modified directly in the admin backend.
If using the Aliyun OSS service, you need to create the following parameters in the .env file:

# Aliyun Account AccessKey
KeyId=Aliyun Account AccessKey
# Aliyun Account AccessKeySecret
KeySecret=Aliyun Account AccessKeySecret
# Aliyun OSS Bucket's Regional Node
OSS_ENDPOINT=Aliyun OSS Bucket's Regional Node
# Aliyun OSS Bucket's BucketName
BUCKET_NAME=Aliyun OSS Bucket's BucketName

Related Links:

GitHub Address: https://github.com/vastsa/FileCodeBox

Tag:Configure, File Sharing Platform, FileCodeBox

Original link:http://enblog.fuyiran.link/Technology/25.html

Copyright: All posts on this blog, unless otherwise stated, are published using theCC BY-NC-SA 4.0 license agreement. Please indicate the source for reprinting Fu Speaking (enblog.fuyiran.link)

Add a new comment.