Cpte-Boot/cpte-module-system/cpte-system-start/src/main/resources/application-k8s.yml

263 lines
7.7 KiB
YAML

server:
port: ${SERVER_PORT:8000}
tomcat:
max-swallow-size: -1
error:
include-exception: true
include-stacktrace: ALWAYS
include-message: ALWAYS
servlet:
context-path: /cpte-wms
compression:
enabled: true
min-response-size: 1024
mime-types: application/javascript,application/json,application/xml,text/html,text/xml,text/plain,text/css,image/*
management:
endpoints:
web:
exposure:
include: health,info,metrics,httpexchanges,cptehttptrace
endpoint:
health:
show-details: when_authorized
security:
enabled: true
spring:
flyway:
enabled: true
clean-disabled: true
servlet:
multipart:
max-file-size: 100MB
max-request-size: 100MB
mail:
timeJobSend: false
host: smtp.163.com
username: cpteos@163.com
password: ${MAIL_PASSWORD:}
properties:
mail.smtp.timeout: 10000
mail.smtp.connectiontimeout: 10000
mail.smtp.writetimeout: 10000
mail.smtp.auth: true
smtp.ssl.enable: true
quartz:
job-store-type: jdbc
jdbc:
initialize-schema: embedded
auto-startup: true
startup-delay: 10s
overwrite-existing-jobs: true
properties:
org:
quartz:
scheduler:
instanceName: K8sScheduler
instanceId: AUTO
jobStore:
class: org.springframework.scheduling.quartz.LocalDataSourceJobStore
driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
tablePrefix: QRTZ_
isClustered: true
misfireThreshold: 12000
clusterCheckinInterval: 15000
threadPool:
class: org.quartz.simpl.SimpleThreadPool
threadCount: 10
threadPriority: 5
threadsInheritContextClassLoaderOfInitializingThread: true
jackson:
date-format: yyyy-MM-dd HH:mm:ss
time-zone: GMT+8
jpa:
open-in-view: false
aop:
proxy-target-class: true
freemarker:
suffix: .ftl
content-type: text/html
charset: UTF-8
cache: true
prefer-file-system-access: false
template-loader-path:
- classpath:/templates
mvc:
static-path-pattern: /**
pathmatch:
matching-strategy: ant_path_matcher
resource:
static-locations: classpath:/static/,classpath:/public/
autoconfigure:
exclude:
- com.alibaba.druid.spring.boot3.autoconfigure.DruidDataSourceAutoConfigure
- org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration
datasource:
druid:
stat-view-servlet:
enabled: false
web-stat-filter:
enabled: true
dynamic:
druid:
initial-size: 10
min-idle: 10
maxActive: 200
maxWait: 30000
timeBetweenEvictionRunsMillis: 60000
minEvictableIdleTimeMillis: 300000
validationQuery: SELECT 1
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
poolPreparedStatements: true
maxPoolPreparedStatementPerConnectionSize: 20
filters: stat,slf4j
wall:
selectWhereAlwayTrueCheck: false
stat:
merge-sql: true
slow-sql-millis: 5000
datasource:
master:
url: ${DB_URL:jdbc:mysql://cpte-wms-mysql:3306/cpte-wms?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai}
username: ${DB_USERNAME:root}
password: ${DB_PASSWORD:root}
driver-class-name: com.mysql.cj.jdbc.Driver
data:
redis:
database: 0
host: ${REDIS_HOST:cpte-wms-redis}
port: ${REDIS_PORT:6379}
password: ${REDIS_PASSWORD:}
mybatis-plus:
mapper-locations: classpath*:org/jeecg/**/xml/*Mapper.xml
global-config:
banner: false
db-config:
id-type: ASSIGN_ID
table-underline: true
configuration:
call-setters-on-nulls: true
minidao:
base-package: org.jeecg.modules.jmreport.*,org.jeecg.modules.drag.*
jeecg:
ai-chat:
enabled: false
model: deepseek-chat
apiKey: ${AI_API_KEY:}
apiHost: https://api.deepseek.com/v1
timeout: 60
ai-rag:
embed-store:
host: ${PGVECTOR_HOST:}
port: 5432
database: vector_db
user: postgres
password: ${PGVECTOR_PASSWORD:}
table: embeddings
firewall:
dataSourceSafe: true
lowCodeMode: prod
signatureSecret: ${SIGNATURE_SECRET:dd05f1c54d63749eda95f9fa6d49v442a}
signUrls: /sys/dict/getDictItems/*,/sys/dict/loadDict/*,/sys/dict/loadDictOrderByValue/*,/sys/dict/loadDictItem/*,/sys/dict/loadTreeData,/sys/api/queryTableDictItemsByCode,/sys/api/queryFilterTableDictInfo,/sys/api/queryTableDictByKeys,/sys/api/translateDictFromTable,/sys/api/translateDictFromTableByKeys,/sys/sendChangePwdSms,/sys/user/sendChangePhoneSms,/sys/sms,/desform/api/sendVerifyCode
uploadType: ${UPLOAD_TYPE:minio}
domainUrl:
pc: ${DOMAIN_URL_PC:https://wms.yourdomain.com}
app: ${DOMAIN_URL_APP:https://app.yourdomain.com}
path:
upload: ${UPLOAD_PATH:/data/upload}
webapp: ${WEBAPP_PATH:/data/webapp}
shiro:
excludeUrls: /test/cpteDemo/demo3,/test/cpteDemo/redisDemo/**,/bigscreen/category/**,/bigscreen/visual/**,/bigscreen/map/**,/jmreport/bigscreen2/**
oss:
accessKey: ${OSS_ACCESS_KEY:}
secretKey: ${OSS_SECRET_KEY:}
endpoint: oss-cn-beijing.aliyuncs.com
bucketName: cptedev
file-view-domain: ${FILE_VIEW_DOMAIN:http://fileview.cpte.com}
minio:
minio_url: ${MINIO_URL:http://cpte-wms-minio:9000}
minio_name: ${MINIO_ACCESS_KEY:admin}
minio_pass: ${MINIO_SECRET_KEY:}
bucketName: ${MINIO_BUCKET:cpte-wms}
jmreport:
saasMode:
firewall:
dataSourceSafe: true
lowCodeMode: prod
gao-de-api:
api-key: ${GAODE_API_KEY:}
secret-key: ${GAODE_SECRET_KEY:}
xxljob:
enabled: false
adminAddresses: http://cpte-wms-xxljob:9080/xxl-job-admin
appname: ${spring.application.name}
accessToken: ''
address: cpte-wms-xxljob:30007
ip: cpte-wms-xxljob
port: 30007
logPath: /data/logs/xxl-job/
logRetentionDays: 30
redisson:
address: ${REDIS_HOST:cpte-wms-redis}:${REDIS_PORT:6379}
password: ${REDIS_PASSWORD:}
type: STANDALONE
enabled: true
baidu-api:
app-id: ${BAIDU_APP_ID:}
api-key: ${BAIDU_API_KEY:}
secret-key: ${BAIDU_SECRET_KEY:}
cas:
prefixUrl: ${CAS_URL:http://cas.example.org:8443/cas}
logging:
level:
root: WARN
org.springframework.context.support.PostProcessorRegistrationDelegate: error
org.flywaydb: info
org.jeecg: INFO
org.cpte: INFO
file:
name: ${LOG_PATH:/data/logs}/cpte-wms/cpte-wms.log
max-size: 100MB
max-history: 30
knife4j:
enable: true
production: true
basic:
enable: true
username: ${SWAGGER_USERNAME:cpte_admin}
password: ${SWAGGER_PASSWORD:cpte_secure_2024}
justauth:
enabled: false
type:
GITHUB:
client-id: ${GITHUB_CLIENT_ID:}
client-secret: ${GITHUB_CLIENT_SECRET:}
redirect-uri: https://wms.yourdomain.com/cpte-wms/sys/thirdLogin/github/callback
WECHAT_ENTERPRISE:
client-id: ${WECHAT_ENTERPRISE_CLIENT_ID:}
client-secret: ${WECHAT_ENTERPRISE_CLIENT_SECRET:}
redirect-uri: https://wms.yourdomain.com/cpte-wms/sys/thirdLogin/wechat_enterprise/callback
agent-id: ${WECHAT_ENTERPRISE_AGENT_ID:}
DINGTALK:
client-id: ${DINGTALK_CLIENT_ID:}
client-secret: ${DINGTALK_CLIENT_SECRET:}
redirect-uri: https://wms.yourdomain.com/cpte-wms/sys/thirdLogin/dingtalk/callback
WECHAT_OPEN:
client-id: ${WECHAT_OPEN_CLIENT_ID:}
client-secret: ${WECHAT_OPEN_CLIENT_SECRET:}
redirect-uri: https://wms.yourdomain.com/cpte-wms/sys/thirdLogin/wechat_open/callback
cache:
type: default
prefix: 'k8s::'
timeout: 1h