Processed apps directory via GitHub Actions

This commit is contained in:
QYG2297248353
2026-03-16 10:07:39 +00:00
parent a51cefa4d5
commit 7044b5a7fa
39 changed files with 359 additions and 64 deletions
+21
View File
@@ -0,0 +1,21 @@
# 数据持久化路径 [必填]
RUSTFS_ROOT_PATH=/home/rustfs
# WebUI 端口 [必填]
PANEL_APP_PORT_HTTP=9001
# API 端口 [必填]
PANEL_APP_PORT_API=9000
# 管理员账号 [必填]
RUSTFS_ACCESS_KEY=rustfsadmin
# 管理员密码 [必填]
RUSTFS_SECRET_KEY=rustfsadmin
# 域名
RUSTFS_SERVER_DOMAINS=example.com
# 启用控制台 [必填]
RUSTFS_CONSOLE_ENABLE=true
+58
View File
@@ -0,0 +1,58 @@
additionalProperties:
formFields:
- default: "/home/rustfs"
edit: true
envKey: RUSTFS_ROOT_PATH
labelZh: 数据持久化路径
labelEn: Data persistence path
required: true
type: text
- default: 9001
edit: true
envKey: PANEL_APP_PORT_HTTP
labelZh: WebUI 端口
labelEn: WebUI port
required: true
rule: paramPort
type: number
- default: 9000
edit: true
envKey: PANEL_APP_PORT_API
labelZh: API 端口
labelEn: API port
required: true
rule: paramPort
type: number
- default: "rustfsadmin"
edit: true
envKey: RUSTFS_ACCESS_KEY
labelZh: 管理员账号
labelEn: Access Key
required: true
type: text
- default: "rustfsadmin"
edit: true
envKey: RUSTFS_SECRET_KEY
labelZh: 管理员密码
labelEn: Secret Key
required: true
type: password
- default: "example.com"
edit: true
envKey: RUSTFS_SERVER_DOMAINS
labelZh: 域名
labelEn: Domains
required: false
type: text
- default: "true"
edit: true
envKey: RUSTFS_CONSOLE_ENABLE
labelZh: 启用控制台
labelEn: Enable Console
required: true
type: select
values:
- label: 启用
value: "true"
- label: 禁用
value: "false"
@@ -0,0 +1,48 @@
networks:
1panel-network:
external: true
services:
rustfs:
container_name: rustfs
env_file:
- ./envs/global.env
- .env
environment:
- TZ=Asia/Shanghai
- RUSTFS_VOLUMES=/data/rustfs{0...3}
- RUSTFS_ADDRESS=0.0.0.0:9000
- RUSTFS_CONSOLE_ADDRESS=0.0.0.0:9001
- RUSTFS_CONSOLE_ENABLE=true
- RUSTFS_CORS_ALLOWED_ORIGINS=*
- RUSTFS_CONSOLE_CORS_ALLOWED_ORIGINS=*
- RUSTFS_OBS_LOGGER_LEVEL=info
- RUSTFS_TLS_PATH=/opt/tls
- RUSTFS_OBJECT_CACHE_ENABLE=true
- RUSTFS_OBJECT_CACHE_TTL_SECS=300
healthcheck:
interval: 30s
retries: 3
start_period: 40s
test:
- CMD
- sh
- -c
- curl -f http://127.0.0.1:9000/health && curl -f http://127.0.0.1:9001/rustfs/console/health
timeout: 10s
image: rustfs/rustfs:1.0.0-alpha.86
labels:
createdBy: Apps
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_API}:9000
- ${PANEL_APP_PORT_HTTP}:9001
restart: always
security_opt:
- no-new-privileges:true
volumes:
- ${RUSTFS_ROOT_PATH}/logs:/app/logs
- ${RUSTFS_ROOT_PATH}/data/rustfs0:/data/rustfs0
- ${RUSTFS_ROOT_PATH}/data/rustfs1:/data/rustfs1
- ${RUSTFS_ROOT_PATH}/data/rustfs2:/data/rustfs2
- ${RUSTFS_ROOT_PATH}/data/rustfs3:/data/rustfs3
@@ -0,0 +1,2 @@
# copyright© 2024 XinJiang Ms Studio
ENV_FILE=.env
@@ -0,0 +1,2 @@
# copyright© 2024 XinJiang Ms Studio
TZ=Asia/Shanghai
@@ -0,0 +1,28 @@
#!/bin/bash
if [ -f .env ]; then
source .env
# setup-1 add default values
CURRENT_DIR=$(pwd)
sed -i '/^ENV_FILE=/d' .env
sed -i '/^GLOBAL_ENV_FILE=/d' .env
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env
mkdir -p "$RUSTFS_ROOT_PATH"
mkdir -p "$RUSTFS_ROOT_PATH/logs"
mkdir -p "$RUSTFS_ROOT_PATH/data"
mkdir -p "$RUSTFS_ROOT_PATH/data/rustfs0"
mkdir -p "$RUSTFS_ROOT_PATH/data/rustfs1"
mkdir -p "$RUSTFS_ROOT_PATH/data/rustfs2"
mkdir -p "$RUSTFS_ROOT_PATH/data/rustfs3"
chown -R 10001:10001 "$RUSTFS_ROOT_PATH"
echo "Check Finish."
else
echo "Error: .env file not found."
fi
@@ -0,0 +1,10 @@
#!/bin/bash
if [ -f .env ]; then
source .env
echo "Check Finish."
else
echo "Error: .env file not found."
fi
@@ -0,0 +1,19 @@
#!/bin/bash
if [ -f .env ]; then
source .env
# setup-1 add default values
CURRENT_DIR=$(pwd)
sed -i '/^ENV_FILE=/d' .env
sed -i '/^GLOBAL_ENV_FILE=/d' .env
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env
chown -R 10001:10001 "$RUSTFS_ROOT_PATH"
echo "Check Finish."
else
echo "Error: .env file not found."
fi