application-dev.yml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446
  1. server:
  2. port: 8080
  3. undertow:
  4. # 平替 tomcat server.tomcat.max-swallow-siz, undertow该值默认为-1
  5. # max-http-post-size: 10MB
  6. threads:
  7. io: 16 # 4核CPU标准配置
  8. worker: 256
  9. buffer-size: 8192 # 以字节为单位,这里设置为8 KB
  10. error:
  11. include-exception: true
  12. include-stacktrace: ALWAYS
  13. include-message: ALWAYS
  14. servlet:
  15. context-path: /adweb3
  16. compression:
  17. enabled: true
  18. min-response-size: 1024
  19. mime-types: application/javascript,application/json,application/xml,text/html,text/xml,text/plain,text/css,image/*
  20. management:
  21. endpoints:
  22. web:
  23. exposure:
  24. include: metrics,httpexchanges,httptrace-new
  25. spring:
  26. # flyway配置
  27. flyway:
  28. # 是否启用flyway
  29. enabled: true
  30. # 编码格式,默认UTF-8
  31. encoding: UTF-8
  32. # 迁移sql脚本文件存放路径,官方默认db/migration
  33. locations: classpath:flyway/sql/mysql
  34. # 迁移sql脚本文件名称的前缀,默认V
  35. sql-migration-prefix: V
  36. # 迁移sql脚本文件名称的分隔符,默认2个下划线__
  37. sql-migration-separator: __
  38. # 避免带${}sql执行失败
  39. placeholder-prefix: '#('
  40. placeholder-suffix: )
  41. # 迁移sql脚本文件名称的后缀
  42. sql-migration-suffixes: .sql
  43. # 迁移时是否进行校验,默认true
  44. validate-on-migrate: true
  45. # 当迁移发现数据库非空且存在没有元数据的表时,自动执行基准迁移,新建schema_version表
  46. baseline-on-migrate: true
  47. # 是否关闭要清除已有库下的表功能,生产环境必须为true,否则会删库,非常重要!!!
  48. clean-disabled: true
  49. servlet:
  50. multipart:
  51. max-file-size: 10MB
  52. max-request-size: 10MB
  53. mail:
  54. host: smtp.feishu.cn
  55. username: notification@advich.com
  56. password: tc6Web2Djn3ZsVdo
  57. properties:
  58. mail:
  59. smtp:
  60. auth: true
  61. starttls:
  62. enable: true
  63. required: true
  64. port: 587
  65. ## quartz定时任务,采用数据库方式
  66. quartz:
  67. job-store-type: jdbc
  68. initialize-schema: embedded
  69. #定时任务启动开关,true-开 false-关
  70. auto-startup: false
  71. #延迟1秒启动定时任务
  72. startup-delay: 1s
  73. #启动时更新己存在的Job
  74. overwrite-existing-jobs: true
  75. properties:
  76. org:
  77. quartz:
  78. scheduler:
  79. instanceName: MyScheduler
  80. instanceId: AUTO
  81. jobStore:
  82. class: org.springframework.scheduling.quartz.LocalDataSourceJobStore
  83. driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
  84. tablePrefix: QRTZ_
  85. isClustered: true
  86. misfireThreshold: 12000
  87. clusterCheckinInterval: 15000
  88. threadPool:
  89. class: org.quartz.simpl.SimpleThreadPool
  90. threadCount: 10
  91. threadPriority: 5
  92. threadsInheritContextClassLoaderOfInitializingThread: true
  93. #json 时间戳统一转换
  94. jackson:
  95. date-format: yyyy-MM-dd HH:mm:ss
  96. time-zone: GMT+8
  97. jpa:
  98. open-in-view: false
  99. aop:
  100. proxy-target-class: true
  101. #配置freemarker
  102. freemarker:
  103. # 设置模板后缀名
  104. suffix: .ftl
  105. # 设置文档类型
  106. content-type: text/html
  107. # 设置页面编码格式
  108. charset: UTF-8
  109. # 设置页面缓存
  110. cache: false
  111. prefer-file-system-access: false
  112. # 设置ftl文件路径
  113. template-loader-path:
  114. - classpath:/templates
  115. template_update_delay: 0
  116. # 设置静态文件路径,js,css等
  117. mvc:
  118. static-path-pattern: /**
  119. #Spring Boot 2.6+后映射匹配的默认策略已从AntPathMatcher更改为PathPatternParser,需要手动指定为ant-path-matcher
  120. pathmatch:
  121. matching-strategy: ant_path_matcher
  122. resource:
  123. static-locations: classpath:/static/,classpath:/public/
  124. autoconfigure:
  125. exclude:
  126. - com.alibaba.druid.spring.boot3.autoconfigure.DruidDataSourceAutoConfigure
  127. - org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration
  128. datasource:
  129. druid:
  130. stat-view-servlet:
  131. enabled: true
  132. loginUsername: admin
  133. loginPassword: 123456
  134. allow:
  135. web-stat-filter:
  136. enabled: true
  137. dynamic:
  138. druid: # 全局druid参数,绝大部分值和默认保持一致。(现已支持的参数如下,不清楚含义不要乱设置)
  139. # 连接池的配置信息
  140. # 初始化大小,最小,最大
  141. initial-size: 5
  142. min-idle: 5
  143. maxActive: 1000
  144. # 配置获取连接等待超时的时间
  145. maxWait: 60000
  146. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  147. timeBetweenEvictionRunsMillis: 60000
  148. # 配置一个连接在池中最小生存的时间,单位是毫秒
  149. minEvictableIdleTimeMillis: 300000
  150. validationQuery: SELECT 1
  151. testWhileIdle: true
  152. testOnBorrow: false
  153. testOnReturn: false
  154. # 打开PSCache,并且指定每个连接上PSCache的大小
  155. poolPreparedStatements: true
  156. maxPoolPreparedStatementPerConnectionSize: 20
  157. # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
  158. filters: stat,slf4j
  159. # 允许SELECT语句的WHERE子句是一个永真条件
  160. wall:
  161. selectWhereAlwayTrueCheck: false
  162. # 打开mergeSql功能;慢SQL记录
  163. stat:
  164. merge-sql: true
  165. slow-sql-millis: 5000
  166. datasource:
  167. master:
  168. url: jdbc:mysql://52.83.163.165:3306/adweb3_dev?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
  169. username: adweb3_dev
  170. password: Advich@2024,.
  171. driver-class-name: com.mysql.cj.jdbc.Driver
  172. # 多数据源配置
  173. #multi-datasource1:
  174. #url: jdbc:mysql://localhost:3306/jeecg-boot2?useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
  175. #username: root
  176. #password: root
  177. #driver-class-name: com.mysql.cj.jdbc.Driver
  178. #redis 配置
  179. data:
  180. redis:
  181. database: 0
  182. host: 127.0.0.1
  183. port: 6379
  184. password:
  185. # rabbit mq配置
  186. rabbitmq:
  187. host: rabbit-mq.v3.adwebcloud.com
  188. username: admin
  189. password: Initial0
  190. port: 5672
  191. publisher-confirm-type: correlated
  192. publisher-returns: true
  193. virtual-host: /adweb3-dev
  194. #mybatis plus 设置
  195. mybatis-plus:
  196. mapper-locations: classpath*:org/jeecg/**/xml/*Mapper.xml
  197. global-config:
  198. # 关闭MP3.0自带的banner
  199. banner: false
  200. db-config:
  201. #主键类型 0:"数据库ID自增",1:"该类型为未设置主键类型", 2:"用户输入ID",3:"全局唯一ID (数字类型唯一ID)", 4:"全局唯一ID UUID",5:"字符串全局唯一ID (idWorker 的字符串表示)";
  202. id-type: ASSIGN_ID
  203. # 默认数据库表下划线命名
  204. table-underline: true
  205. configuration:
  206. # 这个配置会将执行的sql打印出来,在开发或测试的时候可以用
  207. #log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  208. # 返回类型为Map,显示null对应的字段
  209. call-setters-on-nulls: true
  210. #jeecg专用配置
  211. minidao:
  212. base-package: org.jeecg.modules.jmreport.*,org.jeecg.modules.drag.*
  213. jeecg:
  214. # 平台上线安全配置
  215. firewall:
  216. # 数据源安全 (开启后,Online报表和图表的数据源为必填)
  217. dataSourceSafe: false
  218. # 低代码模式(dev:开发模式,prod:发布模式——关闭所有在线开发配置能力)
  219. lowCodeMode: dev
  220. # 签名密钥串(前后端要一致,正式发布请自行修改)
  221. signatureSecret: dd05f1c54d63749eda95f9fa6d49v442a
  222. #签名拦截接口
  223. 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
  224. # 本地:local、Minio:minio、阿里云:alioss
  225. uploadType: local
  226. # 前端访问地址
  227. domainUrl:
  228. pc: http://localhost:3100
  229. app: http://localhost:8051
  230. path:
  231. #文件上传根目录 设置
  232. upload: D:/ProjectsCode/adweb3-server/upload
  233. #webapp文件路径
  234. webapp: D:/ProjectsCode/adweb3-server/upload
  235. #阿里云oss存储和大鱼短信秘钥配置
  236. oss:
  237. accessKey: ??
  238. secretKey: ??
  239. endpoint: oss-cn-beijing.aliyuncs.com
  240. bucketName: jeecgdev
  241. # ElasticSearch 6设置
  242. elasticsearch:
  243. cluster-name: jeecg-ES
  244. cluster-nodes: 127.0.0.1:9200
  245. check-enabled: false
  246. # 在线预览文件服务器地址配置
  247. file-view-domain: http://fileview.jeecg.com
  248. # minio文件上传
  249. minio:
  250. minio_url: http://minio.jeecg.com
  251. minio_name: ??
  252. minio_pass: ??
  253. bucketName: otatest
  254. dataPrefix: https://cutomer-static-bucket.s3.cn-northwest-1.amazonaws.com.cn/
  255. minio_us:
  256. minio_url: s3.amazonaws.com
  257. minio_name: AKIA4NOAZAWYOT6RAF2F
  258. minio_pass: IShWegPpmE3K0P1xbBv/qNJoWlPZMGxgueqyimcz
  259. minio_region: us-east-1
  260. bucketName: sync-adwebcloud-bucket
  261. dataPrefix: https://data.adwebcloud.com/
  262. originDataPrefix: https://advich-wordpress-static-resources.s3.us-west-2.amazonaws.com/
  263. #大屏报表参数设置
  264. jmreport:
  265. #多租户模式,默认值为空(created:按照创建人隔离、tenant:按照租户隔离) (v1.6.2+ 新增)
  266. saasMode:
  267. # 平台上线安全配置(v1.6.2+ 新增)
  268. firewall:
  269. # 数据源安全 (开启后,不允许使用平台数据源、SQL解析加签并且不允许查询数据库)
  270. dataSourceSafe: false
  271. # 低代码开发模式(dev:开发模式,prod:发布模式—关闭在线报表设计功能,分配角色admin、lowdeveloper可以放开限制)
  272. lowCodeMode: dev
  273. #xxl-job配置 - jeecg-boot-starter3-job
  274. xxljob:
  275. enabled: false
  276. adminAddresses: http://localhost:8090/xxl-job-admin/
  277. appname: ${spring.application.name}
  278. accessToken: 4j9Z@FapJQKLuQtG
  279. ## 执行器注册地址 [选填]:优先使用该配置作为注册地址,为空时使用内嵌服务 ”IP:PORT“ 作为注册地址
  280. address:
  281. ## 执行器IP [选填]:默认为空表示自动获取IP,多网卡时可手动设置指定IP
  282. ip:
  283. ## 执行器端口号 [选填]:小于等于0则自动获取;默认端口为9999
  284. ## XxlJobConfiguration.xxlJobExecutor暂不支持配置
  285. port: 9999
  286. logPath: logs/jeecg/job/jobhandler/
  287. logRetentionDays: 30
  288. #分布式锁配置
  289. redisson:
  290. address: 127.0.0.1:6379
  291. password:
  292. type: STANDALONE
  293. enabled: true
  294. # ai-chat
  295. ai-chat:
  296. # 是否开启;必须。
  297. enabled: true
  298. # openAi接口秘钥,填写自己的apiKey;必须。
  299. apiKey: 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
  300. # openAi域名,有代理就填代理的域名。默认:openAI官方apiHost
  301. apiHost: http://openai-proxy.adwebcloud.com
  302. # 超时时间单位:s。默认 60s
  303. timeout: 60
  304. # 本地代理地址
  305. # proxy:
  306. # host: "http://127.0.0.1"
  307. # port: "7890"
  308. #cas单点登录
  309. cas:
  310. prefixUrl: http://cas.example.org:8443/cas
  311. #Mybatis输出sql日志
  312. logging:
  313. level:
  314. org.flywaydb: debug
  315. org.jeecg.modules.system.mapper: debug
  316. #swagger
  317. knife4j:
  318. #开启增强配置
  319. enable: true
  320. #开启生产环境屏蔽
  321. production: false
  322. basic:
  323. enable: false
  324. username: jeecg
  325. password: jeecg1314
  326. #第三方登录
  327. justauth:
  328. enabled: true
  329. type:
  330. GITHUB:
  331. client-id: ??
  332. client-secret: ??
  333. redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/github/callback
  334. WECHAT_ENTERPRISE:
  335. client-id: ??
  336. client-secret: ??
  337. redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/wechat_enterprise/callback
  338. agent-id: ??
  339. DINGTALK:
  340. client-id: ??
  341. client-secret: ??
  342. redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/dingtalk/callback
  343. WECHAT_OPEN:
  344. client-id: ??
  345. client-secret: ??
  346. redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/wechat_open/callback
  347. cache:
  348. type: default
  349. prefix: 'demo::'
  350. timeout: 1h
  351. security:
  352. oauth2:
  353. client:
  354. ignore-urls:
  355. - /test/jeecgDemo/demo3
  356. - /test/jeecgDemo/redisDemo/**
  357. - /jmreport/bigscreen2/**
  358. ### 自定义
  359. ### GA,GTM,Ads等数据交换中心
  360. data-bridge:
  361. api:
  362. host: http://data-bridge.v3.adwebcloud.com:9002
  363. token: lgoXX9APqgPLGMPECiNoxaPx
  364. gtm:
  365. account-id: 6000226571
  366. ga:
  367. account-id: 191734056
  368. ##GEOIP MMDB 静态数据库文件
  369. geoip:
  370. static:
  371. city:
  372. mmdb: D:\Advich\GeoLite2-City.mmdb
  373. # 机器人预警url
  374. robot:
  375. enquiry-url: https://open.feishu.cn/open-apis/bot/v2/hook/042cf8d0-0072-435c-bf5c-656b9368a5ac #询盘拉取失败通知
  376. market-plan-missing-url: https://open.feishu.cn/open-apis/bot/v2/hook/4a7110ff-9121-49fc-b0b6-0d809b548ad4 #缺少营销方案导致的拉取站点失败
  377. flow-abnormal-url: https://open.feishu.cn/open-apis/bot/v2/hook/81ec5829-ba64-43d7-9662-2054e80a4ebe #流量异常通知
  378. keyword-preOrSuffix-url: https://open.feishu.cn/open-apis/bot/v2/hook/325b4b0a-df54-4c7f-adaf-c5da61bb12b3 #关键词前后缀通知
  379. localize-product-fail-url: https://open.feishu.cn/open-apis/bot/v2/hook/46e780fc-6ed9-45ec-b39f-1e332a236386 #产品图片本地化失败通知
  380. gtm-url: https://open.feishu.cn/open-apis/bot/v2/hook/e29a515d-7331-428e-b890-5b5549ffcab5 #跟踪gtm通知
  381. #垃圾询盘判断规则
  382. judge_waste_enquiry:
  383. email:
  384. tenMinNum: 3 # 10分钟内最多发送3次
  385. oneDayNum: 5 # 一天最多发送5封邮件
  386. notBlackListNum: 3 #不在黑名单中的邮箱发送次数
  387. notBlackListDate: 7 #不在邮箱黑名单中的垃圾询盘计数的天数
  388. ip:
  389. tenMinNum: 3 # 10分钟内最多发送次数 >
  390. oneDayNum: 5 # 一天内最多发送次数 >
  391. notBlackListNum: 3 #不在Ip黑名单中垃圾询盘计数次数 >
  392. notBlackListDate: 7 #不在Ip黑名单中垃圾询盘计数的天数
  393. delOrdIpDate: 90 #删除时效性低的Ip时间
  394. ### dataforseo
  395. dataforseo:
  396. username: advichdev@gmail.com
  397. password: 0845d3de83295cca
  398. api-path: https://api.dataforseo.com
  399. ### 跨境物流 - 每日出运等
  400. logistics:
  401. meiri56:
  402. token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.ewogICAgInVzZXJuYW1lIjogInN1aGFvIiwKICAgICJzdWIiOiAibG9naW4iLAogICAgImlhdCI6IDE3MzIyNDcwOTAsCiAgICAiZXhwIjogMTczMjMzMzQ5MAp9.rI3IsN8qsfKiBqS6YQn45dQiTvPdoY_GcMJOR1FgKDk
  403. ### 外贸大数据 - 外贸公社
  404. tradesparq:
  405. api:
  406. host: https://openapi.tradesparq.com
  407. id: Sw5bYYe7
  408. secret: j4ThjI10jiV3L3y7
  409. ### 询盘列表配置
  410. enquiry:
  411. disable-admin-read: false #询盘的消息是否阅读后更改阅读状态
  412. demoFlag: false #询盘的示例关键消息是否脱敏处理
  413. # 亚马逊翻译api
  414. aws:
  415. translate:
  416. accessKey: AKIAS37NJDKDETZ7PPEN
  417. secretKey: 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
  418. #v3项目路径
  419. v3:
  420. projectPath: D:/Advich/pem
  421. #建站链接测试环境配置
  422. AdwebSiteConnect:
  423. host: 35.87.155.71
  424. port: 22
  425. username: ubuntu
  426. password: adweb123@2024
  427. tempDomain: v3-site.adwebcloud.com
  428. tempCname: devci2.adwebcloud.com
  429. serverIp:
  430. test: 35.87.155.71