1
0

(refactor) Remove env files and scripts, update config files

This commit is contained in:
pooneyy
2025-09-04 00:36:13 +08:00
parent 0906288534
commit 89fbe837f1
1566 changed files with 1159 additions and 15329 deletions

View File

@@ -0,0 +1,112 @@
additionalProperties:
formFields:
- child:
default: ""
envKey: PANEL_POSTGRES_SERVICE
required: true
type: service
default: postgresql
envKey: PANEL_POSTGRES_TYPE
labelZh: Postgres 服务 (前置检查)
labelEn: Postgres Service (Pre-check)
required: true
type: apps
values:
- label: PostgreSQL
value: postgresql
- default: "./data"
edit: true
envKey: POLICR_MINI_ROOT_PATH
labelZh: 数据持久化路径
labelEn: Data persistence path
required: true
type: text
- default: 8080
edit: true
envKey: PANEL_APP_PORT_HTTP
labelZh: WebUI 端口
labelEn: WebUI port
required: true
rule: paramPort
type: number
- default: "http://127.0.0.1:8080"
edit: true
envKey: POLICR_MINI_SERVER_ROOT_URL
labelZh: 服务地址 URL
labelEn: Service address URL
required: true
type: text
- default: ""
edit: true
envKey: POLICR_MINI_SERVER_SECRET_KEY_BASE
labelZh: 服务密钥
labelEn: Service secret key
required: true
type: text
- default: ""
edit: true
envKey: POLICR_MINI_BOT_TOKEN
labelZh: 机器人 Token
labelEn: Bot Token
required: true
type: text
- default: "Policr Mini"
edit: true
envKey: POLICR_MINI_BOT_NAME
labelZh: 机器人名称
labelEn: Bot name
required: true
type: text
- default: ""
edit: true
envKey: POLICR_MINI_BOT_OWNER_ID
labelZh: 机器人所有者 ID
labelEn: Bot owner ID
required: true
type: text
- default: "127.0.0.1"
edit: true
envKey: POSTGRES_HOST
labelZh: 数据库 主机地址
labelEn: Database Host
required: true
type: text
- default: 5432
edit: true
envKey: POSTGRES_PORT
labelZh: 数据库 端口
labelEn: Database Port
required: true
rule: paramPort
type: number
- default: "policr_mini_prod"
edit: true
envKey: POSTGRES_DATABSE
labelZh: 数据库 名称
labelEn: Database Name
required: true
rule: paramCommon
type: text
- default: "policr_mini_prod"
edit: true
envKey: POSTGRES_USERNAME
labelZh: 数据库 用户名
labelEn: Database Username
required: true
type: text
- default: ""
edit: true
envKey: POSTGRES_PASSWORD
labelZh: 数据库 密码
labelEn: Database Password
random: true
required: true
rule: paramComplexity
type: password
- default: ""
edit: true
envKey: POLICR_MINI_OPTS
labelZh: 配置参数
labelEn: Configuration parameters
required: false
type: text

View File

@@ -0,0 +1,36 @@
networks:
1panel-network:
external: true
services:
policr-mini:
image: gramoss/policr-mini:20250731
container_name: ${CONTAINER_NAME}
labels:
createdBy: "Apps"
restart: always
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:${PANEL_APP_PORT_HTTP}
volumes:
- ${POLICR_MINI_ROOT_PATH}/assets:/_assets
environment:
- TZ=Asia/Shanghai
- POLICR_MINI_BOT_ASSETS_PATH=/_assets
- POLICR_MINI_SERVER_PORT=${PANEL_APP_PORT_HTTP}
- POLICR_MINI_SERVER_ROOT_URL=${POLICR_MINI_SERVER_ROOT_URL}
- POLICR_MINI_BOT_NAME=${POLICR_MINI_BOT_NAME}
- POLICR_MINI_BOT_OWNER_ID=${POLICR_MINI_BOT_OWNER_ID}
- POLICR_MINI_DATABASE_URL="ecto://${POSTGRES_USERNAME}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DATABSE}"
- POLICR_MINI_DATABASE_POOL_SIZE=${POLICR_MINI_DATABASE_POOL_SIZE:-10}
- POLICR_MINI_SERVER_SECRET_KEY_BASE=${POLICR_MINI_SERVER_SECRET_KEY_BASE}
- POLICR_MINI_BOT_TOKEN=${POLICR_MINI_BOT_TOKEN}
- POLICR_MINI_BOT_WORK_MODE=${POLICR_MINI_BOT_WORK_MODE:-polling}
- POLICR_MINI_BOT_GRID_CAPTCHA_INDI_WIDTH=${POLICR_MINI_BOT_GRID_CAPTCHA_INDI_WIDTH:-180}
- POLICR_MINI_BOT_GRID_CAPTCHA_INDI_HEIGHT=${POLICR_MINI_BOT_GRID_CAPTCHA_INDI_HEIGHT:-120}
- POLICR_MINI_BOT_GRID_CAPTCHA_WATERMARK_FONT_FAMILY=${POLICR_MINI_BOT_GRID_CAPTCHA_WATERMARK_FONT_FAMILY:-Lato}
- POLICR_MINI_BOT_AUTO_GEN_COMMANDS=${POLICR_MINI_BOT_AUTO_GEN_COMMANDS:-true}
- POLICR_MINI_BOT_MOSAIC_METHOD=${POLICR_MINI_BOT_MOSAIC_METHOD:-spoiler}
- POLICR_MINI_UNBAN_METHOD=${POLICR_MINI_UNBAN_METHOD:-until_date}
- POLICR_MINI_OPTS=${POLICR_MINI_OPTS}