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.

# 后端配置文件模板。
# 部署人员将其放置到 K8s 节点的 /var/lib/<APP_NAME>/conf/config.yaml默认 kra 项目为 /var/lib/kra/conf/config.yaml
# 并执行 chown -R 1000:1000 /var/lib/<APP_NAME>/conf容器内运行用户为 UID/GID 1000
#
# 说明:
# - data.database 保持为空:应用启动后首页会出现"前往初始化"
# 在初始化页面填写数据库连接后,框架会自动把连接配置写回本文件。
# - data.redis.addr 指向集群内 Redis Service<APP_NAME>-redis:6379
# - admin.app.env / admin.app.app_id 按项目实际值修改。
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: kra-redis:6379
password: ""
db: 0
use_cluster: false
read_timeout: 200ms
write_timeout: 200ms
admin:
router_prefix: ""
jwt:
signing_key: ""
expires_time: 604800s
buffer_time: 86400s
issuer: kra
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: kra
env: production