kra-new/deploy/k8s/config.example.yaml

72 lines
1.7 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 后端配置文件模板。
# Jenkins 会渲染本文件并通过 Secret/初始化容器写入节点共享目录。
# 容器内运行用户为 UID/GID 1000初始化向导会把运行时配置写回本文件。
#
# 说明:
# - data.database 保持为空:应用启动后首页会出现"前往初始化"
# 在初始化页面填写数据库连接后,框架会自动把连接配置写回本文件。
# - data.redis.addr 指向集群内 Redis Service<APP_NAME>-redis:6379
# - admin.app.env / admin.app.app_id / admin.jwt.issuer 由 Jenkins 按项目和分支渲染。
server:
http:
network: tcp
addr: 0.0.0.0:8000
timeout: 600s
data:
database:
driver: mysql
source: ""
host: ""
port: ""
user: ""
password: ""
name: ""
config: ""
max_idle_conns: 10
max_open_conns: 100
conn_max_lifetime: 3600
engine: InnoDB
log_mode: info
singular: false
redis:
network: tcp
name: default
addr: ${APP_NAME}-redis:6379
password: ""
db: 0
use_cluster: false
read_timeout: 200ms
write_timeout: 200ms
admin:
router_prefix: ""
jwt:
signing_key: '${KRA_JWT_SIGNING_KEY}'
expires_time: 604800s
buffer_time: 86400s
issuer: ${APP_NAME}
system:
use_redis: false
use_multipoint: false
use_strict_auth: false
disable_auto_migrate: false
use_mongo: false
addr: 8000
local:
store_path: uploads/file
path_prefix: uploads/file
media:
session_ttl: 24
max_file_size: "0"
chunk_dir: uploads/chunks
zap:
level: info
format: json
director: logs
log_in_console: true
cors:
mode: whitelist
whitelist: []
app:
app_id: ${APP_NAME}
env: ${KRA_ENV}