mirror of
https://github.com/arch3rPro/1Panel-Appstore.git
synced 2026-04-25 14:57:12 +08:00
refactor(sub2api): 重构配置管理和版本结构
移除硬编码的配置文件,改为使用环境变量 添加 0.1.106 稳定版本目录结构 更新 README 文档说明自动生成密码功能
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
server:
|
||||
host: "0.0.0.0"
|
||||
port: 8080
|
||||
mode: "release"
|
||||
|
||||
database:
|
||||
host: "postgres"
|
||||
port: 5432
|
||||
user: "sub2api"
|
||||
password: "${POSTGRES_PASSWORD}"
|
||||
dbname: "sub2api"
|
||||
|
||||
redis:
|
||||
host: "redis"
|
||||
port: 6379
|
||||
password: ""
|
||||
|
||||
jwt:
|
||||
secret: "sub2api_jwt_secret_change_in_production_32chars"
|
||||
expire_hour: 24
|
||||
@@ -15,19 +15,21 @@ additionalProperties:
|
||||
labelZh: 时区
|
||||
required: true
|
||||
type: text
|
||||
- default: sub2api_secure_jwt_secret_change_in_production
|
||||
- default: sub2api-jwt-secret-change-in-production
|
||||
edit: true
|
||||
envKey: JWT_SECRET
|
||||
labelEn: JWT Secret
|
||||
labelZh: JWT 密钥
|
||||
random: true
|
||||
required: true
|
||||
rule: paramCommon
|
||||
rule: paramComplexity
|
||||
type: password
|
||||
- default: sub2api_secure_db_password_change_in_production
|
||||
- default: sub2api_db_pass
|
||||
edit: true
|
||||
envKey: POSTGRES_PASSWORD
|
||||
labelEn: PostgreSQL Password
|
||||
labelZh: PostgreSQL 密码
|
||||
random: true
|
||||
required: true
|
||||
rule: paramCommon
|
||||
type: password
|
||||
rule: paramComplexity
|
||||
type: password
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
server:
|
||||
host: "0.0.0.0"
|
||||
port: 8080
|
||||
mode: "release"
|
||||
|
||||
database:
|
||||
host: "postgres"
|
||||
port: 5432
|
||||
user: "sub2api"
|
||||
password: "${POSTGRES_PASSWORD}"
|
||||
dbname: "sub2api"
|
||||
|
||||
redis:
|
||||
host: "redis"
|
||||
port: 6379
|
||||
password: ""
|
||||
|
||||
jwt:
|
||||
secret: "${JWT_SECRET}"
|
||||
expire_hour: 24
|
||||
|
||||
default:
|
||||
user_concurrency: 5
|
||||
user_balance: 0
|
||||
api_key_prefix: "sk-"
|
||||
rate_multiplier: 1.0
|
||||
@@ -9,7 +9,6 @@ services:
|
||||
- "${PANEL_APP_PORT_HTTP}:8080"
|
||||
volumes:
|
||||
- ./data:/app/data
|
||||
- ./config.yaml:/app/config.yaml:ro
|
||||
environment:
|
||||
- TZ=${TZ}
|
||||
- POSTGRES_CONN_STRING=postgres://sub2api:${POSTGRES_PASSWORD}@postgres:5432/sub2api?sslmode=disable
|
||||
@@ -54,4 +53,4 @@ networks:
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
redis_data:
|
||||
redis_data:
|
||||
|
||||
Reference in New Issue
Block a user