1
0

chore(deps): update jiangrui1994/cloudsaver docker tag to v0.6.5 (#3534)

This commit is contained in:
renovate[bot]
2026-01-18 17:03:46 +00:00
committed by GitHub
parent fffe77d149
commit 7f23d6408a
4 changed files with 1 additions and 1 deletions

View File

@@ -0,0 +1,6 @@
# JWT配置
JWT_SECRET=${JWT_SECRET}
# Telegram配置
TELEGRAM_BASE_URL=https://t.me/s

View File

@@ -0,0 +1,33 @@
additionalProperties:
formFields:
- default: "./data"
edit: true
envKey: CLOUDSAVER_ROOT_PATH
labelZh: 数据持久化路径
labelEn: Data persistence path
label:
en: Data persistence path
zh: 数据持久化路径
required: true
type: text
- default: 8008
edit: true
envKey: PANEL_APP_PORT_HTTP
labelZh: WebUI 端口
labelEn: WebUI port
label:
en: WebUI port
zh: WebUI 端口
required: true
rule: paramPort
type: number
- default: ""
edit: true
envKey: JWT_SECRET
labelZh: JWT 密钥
labelEn: JWT secret
label:
en: JWT secret
zh: JWT 密钥
required: true
type: text

View File

@@ -0,0 +1,27 @@
networks:
1panel-network:
external: true
services:
cloudsaver:
image: jiangrui1994/cloudsaver:0.6.5
container_name: ${CONTAINER_NAME}
labels:
createdBy: "Apps"
restart: always
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:8008
volumes:
- ${CLOUDSAVER_ROOT_PATH}/data:/app/data
- ${CLOUDSAVER_ROOT_PATH}/config:/app/config
environment:
- TZ=Asia/Shanghai
healthcheck:
test: >
node -e "require('http').get('http://localhost:8008/health', res => { const allowed = [200, 204, 301, 302, 304]; process.exit(allowed.includes(res.statusCode) ? 0 : 1); }).on('error', () => process.exit(0));"
interval: 30s
timeout: 3s
start_period: 5s
retries: 3

View File

@@ -0,0 +1,17 @@
#!/bin/bash
if [ -f .env ]; then
source .env
CONFIG_DIR="$CLOUDSAVER_ROOT_PATH/config"
mkdir -p "$CONFIG_DIR"
CONFIG_FILE="$CONFIG_DIR/env"
cp ./config/env.example $CONFIG_FILE
sed -i "s/JWT_SECRET=.*/JWT_SECRET=$JWT_SECRET/" $CONFIG_FILE
echo "Check Finish."
else
echo "Error: .env file not found."
fi