105 lines
2.5 KiB
YAML
105 lines
2.5 KiB
YAML
# ============================================================
|
||
# iotlcm-upstream-chan 配置
|
||
#
|
||
# 本文件随部署仓分发,已带可运行默认值,无需复制或改名。
|
||
# 正式上线前请修改口令等敏感项;修改时需与 docker-compose.yml、
|
||
# schema/init.sql 及 config/ 下其他文件保持一致(详见 README)。
|
||
# ============================================================
|
||
|
||
system:
|
||
name: "IotLCM-Upstream-Chan"
|
||
version: "1.0"
|
||
description: "IotLCM Upstream Channel Service"
|
||
gfmode: "prod"
|
||
upload:
|
||
local:
|
||
path: "/app/upload"
|
||
|
||
server:
|
||
name: "iotlcmupstreamchan-http-svc"
|
||
address: ":8110"
|
||
openapiPath: "/api.json"
|
||
swaggerPath: "/swagger"
|
||
indexFiles: ["index.html", "index.htm"]
|
||
indexFolder: false
|
||
fileServerEnabled: true
|
||
initLoadMemoryDB: false
|
||
maxHeaderBytes: "20KB"
|
||
clientMaxBodySize: "200MB"
|
||
|
||
# ---------- 服务注册 ----------
|
||
registry:
|
||
type: "consul"
|
||
address: "consul:8500"
|
||
|
||
logger:
|
||
path: "/app/logs"
|
||
file: "{Y-m-d-H}.log"
|
||
prefix: ""
|
||
level: "info"
|
||
timeFormat: "2006-01-02T15:04:05.000"
|
||
ctxKeys: []
|
||
header: true
|
||
stdout: true
|
||
rotateSize: 0
|
||
rotateExpire: 0
|
||
rotateBackupLimit: 0
|
||
rotateBackupExpire: 0
|
||
rotateBackupCompress: 0
|
||
rotateCheckInterval: "1h"
|
||
stdoutColorDisabled: false
|
||
writerColorEnable: false
|
||
|
||
# ---------- 数据库 ----------
|
||
database:
|
||
logger:
|
||
path: "/app/logs"
|
||
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
|
||
memorydb:
|
||
link: "sqlite::@file(:memory:)"
|
||
debug: false
|
||
maxIdle: 1
|
||
maxOpen: 1
|
||
maxLifetime: 30
|
||
|
||
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: "SystemCache"
|
||
|
||
# ---------- 依赖行为 ----------
|
||
dependencies:
|
||
# 运营商 Token 刷新策略
|
||
token_refresh:
|
||
mode: "expired_only" # expired_only / always
|
||
skew_seconds: 600 # 提前刷新的时间窗(秒)
|
||
|
||
# 移动 OneLink 挡板地址。
|
||
# 启动了 onelink-mock(--profile with-mock)时保持此值;
|
||
# 对接真实运营商时删掉本段或改为真实地址。
|
||
sim_yd_mock_v5:
|
||
url: "http://onelink-mock:8080/v5/"
|