You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

56 lines
2.0 KiB

server:
port: 18088
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://127.0.0.1:3306/inspect_agg?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true
username: root
password: htjc2018
redis:
host: ${REDIS_HOST:127.0.0.1}
port: ${REDIS_PORT:6379}
database: ${REDIS_DATABASE:0}
timeout: 3000ms
mybatis:
mapper-locations: classpath*:mapper/**/*.xml
configuration:
map-underscore-to-camel-case: true
logging:
level:
com.inspect.agg: info
agg:
video:
zlm-base-url: http://192.168.1.116:33380
zlm-secret: Xg@123456
app: live
public-base-url: http://192.168.1.116:33380
# 站端直连流的集控 nginx 地址;留空时按当前请求 Host 自动拼接,也可用 AGG_VIDEO_NGINX_BASE_URL 覆盖
nginx-base-url: ${AGG_VIDEO_NGINX_BASE_URL:}
rtsp-transport: 0
retry-count: -1
file:
# 留空:出参返回相对地址 /img、/file,由前端拼 /app/htjc6/htjcImage 前缀走集控 nginx
# 仅当前端不再拼前缀、需要绝对地址时,才配置 AGG_FILE_NGINX_BASE_URL=http://集控:18891
nginx-base-url: ${AGG_FILE_NGINX_BASE_URL:}
# 是否在 /agg/proxy 通用代理的 JSON 响应中递归改写图片/文件地址
rewrite-proxy-response: true
# 访问站端接口的 HTTP 客户端;打开多画面时会同时发起多路起流/停流请求。
http:
# 建立连接超时(毫秒)
connect-timeout-ms: ${AGG_HTTP_CONNECT_TIMEOUT_MS:10000}
# 读取响应超时(毫秒),需大于站端起流最慢耗时
read-timeout-ms: ${AGG_HTTP_READ_TIMEOUT_MS:30000}
# 连接池总连接上限
pool-max-total: ${AGG_HTTP_POOL_MAX_TOTAL:100}
# 同一站端的连接上限
pool-max-per-route: ${AGG_HTTP_POOL_MAX_PER_ROUTE:40}
# 从池中取空闲连接的等待上限(毫秒)
connection-request-timeout-ms: ${AGG_HTTP_CONNECTION_REQUEST_TIMEOUT_MS:3000}