1
0

feat:添加chevereto到列表

This commit is contained in:
okxlin
2024-12-08 15:52:13 +08:00
parent cd98871693
commit abc569e970
19 changed files with 508 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
CHEVERETO_HEADER_CLIENT_IP="X-Real-IP"
CHEVERETO_HOSTNAME="hostname.com"
CHEVERETO_HOSTNAME_PATH="/"
CHEVERETO_IMAGES_PATH="./data/images"
CHEVERETO_MAX_POST_SIZE="2G"
CHEVERETO_MAX_UPLOAD_SIZE="2G"
CHEVERETO_SERVICING="server"
CONTAINER_NAME="chevereto"
ENCRYPTION_KEY=""
PANEL_APP_PORT_HTTP=40328
PANEL_DB_HOST="mysql"
PANEL_DB_HOST_NAME="mysql"
PANEL_DB_NAME="chevereto"
PANEL_DB_PORT=3306
PANEL_DB_TYPE="mysql"
PANEL_DB_USER="chevereto"
PANEL_DB_USER_PASSWORD="chevereto"

View File

@@ -0,0 +1,104 @@
additionalProperties:
formFields:
- child:
default: ""
envKey: PANEL_DB_HOST
required: true
type: service
default: mysql
envKey: PANEL_DB_TYPE
labelEn: Database Service
labelZh: 数据库服务
required: true
type: apps
values:
- label: MySQL
value: mysql
- default: "chevereto"
envKey: PANEL_DB_NAME
labelEn: Database
labelZh: 数据库名
random: true
required: true
rule: paramCommon
type: text
- default: "chevereto"
envKey: PANEL_DB_USER
labelEn: User
labelZh: 数据库用户
random: true
required: true
rule: paramCommon
type: text
- default: "chevereto"
envKey: PANEL_DB_USER_PASSWORD
labelEn: Password
labelZh: 数据库用户密码
random: true
required: true
rule: paramComplexity
type: password
- default: "40328"
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: HTTP Port
labelZh: HTTP 端口
required: true
rule: paramPort
type: number
- default: "2G"
edit: true
envKey: CHEVERETO_MAX_POST_SIZE
labelEn: Max Post Size
labelZh: 最大 POST 大小
required: true
type: text
- default: "2G"
edit: true
envKey: CHEVERETO_MAX_UPLOAD_SIZE
labelEn: Max Upload Size
labelZh: 最大上传大小
required: true
type: text
- default: "server"
disabled: true
envKey: CHEVERETO_SERVICING
labelEn: Servicing
labelZh: 服务模式
required: true
type: text
- default: "./data/images"
edit: true
envKey: CHEVERETO_IMAGES_PATH
labelEn: Images Path
labelZh: 图片路径
required: true
type: text
- default: "hostname.com"
edit: true
envKey: CHEVERETO_HOSTNAME
labelEn: Hostname
labelZh: 主机名
required: true
type: text
- default: "/"
edit: true
envKey: CHEVERETO_HOSTNAME_PATH
labelEn: Hostname Path
labelZh: 主机名路径
required: true
type: text
- default: "X-Real-IP"
edit: true
envKey: CHEVERETO_HEADER_CLIENT_IP
labelEn: Client IP Header
labelZh: 客户端 IP 标头
required: true
type: text
- default: ""
edit: true
envKey: ENCRYPTION_KEY
labelEn: Encryption Key
labelZh: 加密密钥
required: false
type: text

View File

@@ -0,0 +1,37 @@
services:
chevereto:
image: "chevereto/chevereto:latest"
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
ports:
- "${PANEL_APP_PORT_HTTP}:80"
volumes:
- ${CHEVERETO_IMAGES_PATH}:/var/www/html/images/
- chevereto_data:/var/www/html/
environment:
- VIRTUAL_HOST=${CHEVERETO_HOSTNAME}
- LETSENCRYPT_HOST=${CHEVERETO_HOSTNAME}
- CHEVERETO_DB_HOST=${PANEL_DB_HOST}
- CHEVERETO_DB_USER=${PANEL_DB_USER}
- CHEVERETO_DB_PASS=${PANEL_DB_USER_PASSWORD}
- CHEVERETO_DB_PORT=${PANEL_DB_PORT}
- CHEVERETO_DB_NAME=${PANEL_DB_NAME}
- CHEVERETO_HEADER_CLIENT_IP=${CHEVERETO_HEADER_CLIENT_IP}
- CHEVERETO_HOSTNAME=${CHEVERETO_HOSTNAME}
- CHEVERETO_HOSTNAME_PATH=${CHEVERETO_HOSTNAME_PATH}
- CHEVERETO_ENCRYPTION_KEY=${ENCRYPTION_KEY}
- CHEVERETO_MAX_POST_SIZE=${CHEVERETO_MAX_POST_SIZE}
- CHEVERETO_MAX_UPLOAD_SIZE=${CHEVERETO_MAX_UPLOAD_SIZE}
- CHEVERETO_SERVICING=${CHEVERETO_SERVICING}
labels:
createdBy: "Apps"
volumes:
chevereto_data:
name: chevereto_data
networks:
1panel-network:
external: true

View File

@@ -0,0 +1,3 @@
#!/bin/bash
chown -R www-data:www-data data

View File

@@ -0,0 +1,3 @@
#!/bin/bash
docker-compose down --volumes