am-freescan/am-backend/yudao-server/src/main/resources/application-prod.yaml

103 lines
2.9 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.

# 生产模板随 JAR 打包,不加载 .local;实际连接参数由部署环境提供。
server:
port: ${SERVER_PORT:48090}
spring:
autoconfigure:
exclude:
- org.springframework.boot.autoconfigure.quartz.QuartzAutoConfiguration
- com.binarywang.spring.starter.wxjava.mp.config.WxMpAutoConfiguration
- com.binarywang.spring.starter.wxjava.miniapp.config.WxMaAutoConfiguration
datasource:
dynamic:
primary: master
strict: true
datasource:
master:
url: ${AM_FREESCAN_DB_URL:jdbc:mysql://127.0.0.1:3306/am-freescan?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&rewriteBatchedStatements=true}
username: ${AM_FREESCAN_DB_USER:freescan}
password: ${AM_FREESCAN_DB_PASSWORD}
data:
redis:
host: ${AM_FREESCAN_REDIS_HOST:127.0.0.1}
port: ${AM_FREESCAN_REDIS_PORT:6379}
database: ${AM_FREESCAN_REDIS_DATABASE:15}
password: ${AM_FREESCAN_REDIS_PASSWORD}
boot:
admin:
context-path: /admin
client:
enabled: false
cache:
redis:
key-prefix: '${spring.application.name}:'
cmvr:
scanner:
host: ${AM_FREESCAN_SCANNER_HOST:}
port: ${AM_FREESCAN_SCANNER_PORT:18888}
api-key: ${AM_FREESCAN_SCANNER_API_KEY:}
rotary-base:
host: ${AM_FREESCAN_ROTARY_BASE_HOST:}
port: ${AM_FREESCAN_ROTARY_BASE_PORT:50052}
quic:
# 启用时必须提供部署主机的证书和私钥文件路径。
enabled: ${CMVR_QUIC_ENABLED:false}
bind-host: ${CMVR_QUIC_BIND_HOST:0.0.0.0}
port: ${CMVR_QUIC_PORT:4433}
alpn: ${CMVR_QUIC_ALPN:cmvr-quic-edge/1}
allowed-node-ids: ${CMVR_QUIC_ALLOWED_NODE_IDS:}
tls:
certificate: ${CMVR_QUIC_TLS_CERTIFICATE:}
private-key: ${CMVR_QUIC_TLS_PRIVATE_KEY:}
client-ca: ${CMVR_QUIC_TLS_CLIENT_CA:}
require-client-certificate: ${CMVR_QUIC_TLS_REQUIRE_CLIENT_CERTIFICATE:false}
lab:
integration:
mock-enabled: false
mock-auto-callback: false
callback-base-url: http://127.0.0.1:${server.port}/open-api
public-base-url: ${AM_FREESCAN_PUBLIC_BASE_URL:}
task:
report-required: true
resource:
require-fixture: false
require-material: false
artifact:
nas-root: ${LAB_ARTIFACT_NAS_ROOT:./artifacts}
max-size-bytes: 0 # Unlimited file policy; runtime resource guards remain enabled.
yudao:
captcha:
enable: false
security:
mock-enable: false
demo: false
api-encrypt:
enable: false
access-log:
enable: true
web:
admin-ui:
url: ${AM_FREESCAN_ADMIN_UI_URL:}
swagger:
title: AM FreeScan API
description: AM FreeScan 任务管理与检测配置
justauth:
enabled: false
management:
endpoints:
web:
base-path: /actuator
exposure:
include: health,info
logging:
file:
name: ${LOGGING_FILE_NAME:./logs/backend.log}
level:
cn.iocoder.yudao: INFO