chore: 并入 iotlcm-deploy 历史到 deploy/(原提交 eb97c53)
This commit is contained in:
@@ -0,0 +1,93 @@
|
||||
# ============================================================
|
||||
# iotlcm-openapi 配置
|
||||
#
|
||||
# 本文件随部署仓分发,已带可运行默认值,无需复制或改名。
|
||||
# 正式上线前请修改口令等敏感项;修改时需与 docker-compose.yml、
|
||||
# schema/init.sql 及 config/ 下其他文件保持一致(详见 README)。
|
||||
# ============================================================
|
||||
|
||||
system:
|
||||
name: "IotLCM-OpenAPI"
|
||||
version: "1.0"
|
||||
description: "IotLCM OpenAPI Service"
|
||||
gfmode: "prod"
|
||||
|
||||
server:
|
||||
address: ":8000"
|
||||
openapiPath: "/api.json"
|
||||
swaggerPath: "/swagger"
|
||||
maxHeaderBytes: "20KB"
|
||||
clientMaxBodySize: "200MB"
|
||||
readTimeout: "20m"
|
||||
writeTimeout: "20m"
|
||||
|
||||
logger:
|
||||
path: "/app/logs"
|
||||
file: "{Y-m-d-H}.log"
|
||||
level: "info"
|
||||
timeFormat: "2006-01-02T15:04:05"
|
||||
stdout: true
|
||||
header: true
|
||||
|
||||
# ---------- JWT ----------
|
||||
# 必改:必须与 admin-svr、app-server 完全一致,
|
||||
# 否则 admin 签发的令牌在 openapi 侧校验不通过。
|
||||
jwt:
|
||||
signingKey: "1f8b3c5d7e9a2b4c6d8e0f1a3b5c7d9e1f8b3c5d7e9a2b4c6d8e0f1a3b5c7d9e"
|
||||
expiresTime: "7d"
|
||||
bufferTime: "1d"
|
||||
issuer: "iotlcm"
|
||||
|
||||
# ---------- 数据库 ----------
|
||||
# 建议为 OpenAPI 单独建只读账号,与 admin 的账号隔离。
|
||||
database:
|
||||
logger:
|
||||
path: "/app/logs/sql"
|
||||
level: "all"
|
||||
stdout: true
|
||||
default:
|
||||
# 必改:连接串
|
||||
link: "mysql:u_iotlcm:Iotlcm2026Default@tcp(mysql:3306)/db_iotlcm?charset=utf8mb4&parseTime=True&loc=Asia%2FShanghai"
|
||||
debug: false
|
||||
charset: "utf8mb4"
|
||||
dryRun: false
|
||||
maxIdle: 30
|
||||
maxOpen: 100
|
||||
maxLifetime: 120
|
||||
|
||||
cache:
|
||||
adapter: "redis"
|
||||
fileDir: "resource/cache"
|
||||
|
||||
# ---------- Redis ----------
|
||||
redis:
|
||||
default:
|
||||
mode: "single"
|
||||
sentinelMasterName: ""
|
||||
address: "redis:6379"
|
||||
db: 0
|
||||
pass: "Iotlcm2026Default"
|
||||
minIdle: 5
|
||||
maxIdle: 30
|
||||
maxActive: 5000
|
||||
idleTimeout: "60s"
|
||||
ClientName: "OpenAPICache"
|
||||
|
||||
# ---------- RabbitMQ ----------
|
||||
rabbitmq:
|
||||
enabled: true
|
||||
dsn: "amqp://iotlcm:Iotlcm2026Default@rabbitmq:5672/"
|
||||
|
||||
# ---------- 免登录白名单 ----------
|
||||
router:
|
||||
exceptLogin:
|
||||
- /openapi/v3/query/token
|
||||
|
||||
# ---------- 上游服务地址 ----------
|
||||
upstream:
|
||||
proxy:
|
||||
address: "upstream-proxy:8510"
|
||||
timeout: "10s"
|
||||
gateway:
|
||||
address: "upstream-chan:8110"
|
||||
timeout: "10s"
|
||||
Reference in New Issue
Block a user