application-prod.yml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476
  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: false
  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.163.com
  55. username: jeecgos@163.com
  56. password: ??
  57. properties:
  58. mail:
  59. smtp:
  60. auth: true
  61. starttls:
  62. enable: true
  63. required: true
  64. ## quartz定时任务,采用数据库方式
  65. quartz:
  66. job-store-type: jdbc
  67. initialize-schema: embedded
  68. #定时任务开关,true-开 false-关
  69. auto-startup: false
  70. #延迟1秒启动定时任务
  71. startup-delay: 1s
  72. #启动时更新己存在的Job
  73. overwrite-existing-jobs: true
  74. properties:
  75. org:
  76. quartz:
  77. scheduler:
  78. instanceName: MyScheduler
  79. instanceId: AUTO
  80. jobStore:
  81. class: org.springframework.scheduling.quartz.LocalDataSourceJobStore
  82. driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
  83. tablePrefix: QRTZ_
  84. isClustered: true
  85. misfireThreshold: 12000
  86. clusterCheckinInterval: 15000
  87. threadPool:
  88. class: org.quartz.simpl.SimpleThreadPool
  89. threadCount: 10
  90. threadPriority: 5
  91. threadsInheritContextClassLoaderOfInitializingThread: true
  92. #json 时间戳统一转换
  93. jackson:
  94. date-format: yyyy-MM-dd HH:mm:ss
  95. time-zone: GMT+8
  96. jpa:
  97. open-in-view: false
  98. aop:
  99. proxy-target-class: true
  100. #配置freemarker
  101. freemarker:
  102. # 设置模板后缀名
  103. suffix: .ftl
  104. # 设置文档类型
  105. content-type: text/html
  106. # 设置页面编码格式
  107. charset: UTF-8
  108. # 设置页面缓存
  109. cache: false
  110. prefer-file-system-access: false
  111. # 设置ftl文件路径
  112. template-loader-path:
  113. - classpath:/templates
  114. template_update_delay: 0
  115. # 设置静态文件路径,js,css等
  116. mvc:
  117. static-path-pattern: /**
  118. #Spring Boot 2.6+后映射匹配的默认策略已从AntPathMatcher更改为PathPatternParser,需要手动指定为ant-path-matcher
  119. pathmatch:
  120. matching-strategy: ant_path_matcher
  121. resource:
  122. static-locations: classpath:/static/,classpath:/public/
  123. autoconfigure:
  124. exclude:
  125. - com.alibaba.druid.spring.boot3.autoconfigure.DruidDataSourceAutoConfigure
  126. - org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration
  127. datasource:
  128. druid:
  129. stat-view-servlet:
  130. enabled: true
  131. loginUsername: admin
  132. loginPassword: 123456
  133. allow:
  134. web-stat-filter:
  135. enabled: true
  136. dynamic:
  137. druid: # 全局druid参数,绝大部分值和默认保持一致。(现已支持的参数如下,不清楚含义不要乱设置)
  138. # 连接池的配置信息
  139. # 初始化大小,最小,最大
  140. initial-size: 5
  141. min-idle: 5
  142. maxActive: 1000
  143. # 配置获取连接等待超时的时间
  144. maxWait: 60000
  145. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  146. timeBetweenEvictionRunsMillis: 60000
  147. # 配置一个连接在池中最小生存的时间,单位是毫秒
  148. minEvictableIdleTimeMillis: 300000
  149. validationQuery: SELECT 1 FROM DUAL
  150. testWhileIdle: true
  151. testOnBorrow: false
  152. testOnReturn: false
  153. # 打开PSCache,并且指定每个连接上PSCache的大小
  154. poolPreparedStatements: true
  155. maxPoolPreparedStatementPerConnectionSize: 20
  156. # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
  157. filters: stat,slf4j
  158. # 允许SELECT语句的WHERE子句是一个永真条件
  159. wall:
  160. selectWhereAlwayTrueCheck: false
  161. # 打开mergeSql功能;慢SQL记录
  162. stat:
  163. merge-sql: true
  164. slow-sql-millis: 5000
  165. datasource:
  166. master:
  167. # TODO: 待切换生产RDS
  168. url: jdbc:mysql://adweb3-prod.c0stwhsmuvxv.rds.cn-northwest-1.amazonaws.com.cn:3306/adweb_v3?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
  169. username: root
  170. password: xZjenmZAvKJCBDCTrWIb
  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 # TODO 当前v3测试站点只给 /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: true
  218. # 低代码模式(dev:开发模式,prod:发布模式——关闭所有在线开发配置能力)
  219. lowCodeMode: prod
  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\alioss
  225. uploadType: alioss
  226. # 前端访问地址
  227. domainUrl:
  228. pc: http://localhost:3100
  229. app: http://localhost:8051
  230. path:
  231. #文件上传根目录 设置
  232. upload: /opt/adweb3/upload
  233. #webapp文件路径
  234. webapp: /opt/adweb3/webapp
  235. #阿里云oss存储和大鱼短信秘钥配置
  236. oss:
  237. accessKey: ??
  238. secretKey: ??
  239. endpoint: oss-cn-beijing.aliyuncs.com
  240. bucketName: jeecgdev
  241. staticDomain: https://static.jeecg.com
  242. # ElasticSearch 设置
  243. elasticsearch:
  244. cluster-name: jeecg-ES
  245. cluster-nodes: 127.0.0.1:9200
  246. check-enabled: true
  247. # 在线预览文件服务器地址配置
  248. file-view-domain: http://fileview.jeecg.com
  249. # minio文件上传
  250. minio:
  251. minio_url: http://minio.jeecg.com
  252. minio_name: ??
  253. minio_pass: ??
  254. bucketName: otatest
  255. dataPrefix: https://cutomer-static-bucket.s3.cn-northwest-1.amazonaws.com.cn/
  256. minio_us:
  257. minio_url: s3.amazonaws.com
  258. minio_name: AKIA4NOAZAWYOT6RAF2F
  259. minio_pass: IShWegPpmE3K0P1xbBv/qNJoWlPZMGxgueqyimcz
  260. minio_region: us-east-1
  261. bucketName: sync-adwebcloud-bucket
  262. dataPrefix: https://data.adwebcloud.com/
  263. originDataPrefix: https://advich-wordpress-static-resources.s3.us-west-2.amazonaws.com/
  264. #大屏报表参数设置
  265. jmreport:
  266. #多租户模式,默认值为空(created:按照创建人隔离、tenant:按照租户隔离) (v1.6.2+ 新增)
  267. saasMode:
  268. # 平台上线安全配置(v1.6.2+ 新增)
  269. firewall:
  270. # 数据源安全 (开启后,不允许使用平台数据源、SQL解析加签并且不允许查询数据库)
  271. dataSourceSafe: true
  272. # 低代码开发模式(dev:开发模式,prod:发布模式—关闭在线报表设计功能,分配角色admin、lowdeveloper可以放开限制)
  273. lowCodeMode: prod
  274. #xxl-job配置 - jeecg-boot-starter3-job
  275. xxljob:
  276. enabled: true
  277. adminAddresses: http://xxl-job.v3.adwebcloud.com/xxl-job-admin/
  278. appname: ${spring.application.name}
  279. accessToken: 4j9Z@FapJQKLuQtG
  280. ## 执行器注册地址 [选填]:优先使用该配置作为注册地址,为空时使用内嵌服务 ”IP:PORT“ 作为注册地址
  281. address:
  282. ## 执行器IP [选填]:默认为空表示自动获取IP,多网卡时可手动设置指定IP
  283. ip:
  284. ## 执行器端口号 [选填]:小于等于0则自动获取;默认端口为9999
  285. ## XxlJobConfiguration.xxlJobExecutor暂不支持配置
  286. port: 9999
  287. logPath: logs/jeecg/job/jobhandler/
  288. logRetentionDays: 30
  289. #分布式锁配置
  290. redisson:
  291. address: 127.0.0.1:6379
  292. password:
  293. type: STANDALONE
  294. enabled: true
  295. # ai-chat
  296. ai-chat:
  297. # 是否开启;必须。
  298. enabled: true
  299. # openAi接口秘钥,填写自己的apiKey;必须。
  300. apiKey: sk-qiRbJ62llvdWtFPF74B4C398B0D049A4A5B001E9B1C18e4f
  301. # openAi域名,有代理就填代理的域名。默认:openAI官方apiHost
  302. apiHost: https://api.cinfohubs.buzz/
  303. # 超时时间单位:s。默认 60s
  304. timeout: 60
  305. #cas单点登录
  306. cas:
  307. prefixUrl: http://cas.example.org:8443/cas
  308. #Mybatis输出sql日志
  309. logging:
  310. level:
  311. org.flywaydb: debug
  312. org.jeecg.modules.system.mapper: info
  313. #swagger
  314. knife4j:
  315. #开启增强配置
  316. enable: true
  317. #开启生产环境屏蔽
  318. production: true
  319. basic:
  320. enable: true
  321. username: jeecg
  322. password: jeecg1314
  323. #第三方登录
  324. justauth:
  325. enabled: true
  326. type:
  327. GITHUB:
  328. client-id: ??
  329. client-secret: ??
  330. redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/github/callback
  331. WECHAT_ENTERPRISE:
  332. client-id: ??
  333. client-secret: ??
  334. redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/wechat_enterprise/callback
  335. agent-id: ??
  336. DINGTALK:
  337. client-id: ??
  338. client-secret: ??
  339. redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/dingtalk/callback
  340. WECHAT_OPEN:
  341. client-id: ??
  342. client-secret: ??
  343. redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/wechat_open/callback
  344. cache:
  345. type: default
  346. prefix: 'demo::'
  347. timeout: 1h
  348. security:
  349. oauth2:
  350. client:
  351. ignore-urls:
  352. - /test/jeecgDemo/demo3
  353. - /test/jeecgDemo/redisDemo/**
  354. - /jmreport/bigscreen2/**
  355. - /api/getUserInfo
  356. ### 自定义
  357. ### GA,GTM,Ads等数据交换中心
  358. data-bridge:
  359. api:
  360. host: http://data-bridge.v3.adwebcloud.com:9002
  361. token: lgoXX9APqgPLGMPECiNoxaPx
  362. gtm:
  363. account-id: 6000226571
  364. ga:
  365. account-id: 191734056
  366. ##GEOIP MMDB 静态数据库文件
  367. geoip:
  368. static:
  369. city:
  370. mmdb: /opt/adweb3/sharing/GeoLite2-City.mmdb
  371. # 机器人预警url
  372. robot:
  373. enquiry-url: https://open.feishu.cn/open-apis/bot/v2/hook/042cf8d0-0072-435c-bf5c-656b9368a5ac #询盘拉取失败通知
  374. market-plan-missing-url: https://open.feishu.cn/open-apis/bot/v2/hook/4a7110ff-9121-49fc-b0b6-0d809b548ad4 #缺少营销方案导致的拉取站点失败
  375. flow-abnormal-url: https://open.feishu.cn/open-apis/bot/v2/hook/81ec5829-ba64-43d7-9662-2054e80a4ebe #流量异常通知
  376. keyword-preOrSuffix-url: https://open.feishu.cn/open-apis/bot/v2/hook/325b4b0a-df54-4c7f-adaf-c5da61bb12b3
  377. localize-product-fail-url: https://open.feishu.cn/open-apis/bot/v2/hook/46e780fc-6ed9-45ec-b39f-1e332a236386
  378. gtm-url: https://open.feishu.cn/open-apis/bot/v2/hook/e29a515d-7331-428e-b890-5b5549ffcab5
  379. #垃圾询盘判断规则
  380. judge_waste_enquiry:
  381. email:
  382. tenMinNum: 3 # 10分钟内最多发送3次
  383. oneDayNum: 5 # 一天最多发送5封邮件
  384. notBlackListNum: 3 #不在黑名单中的邮箱发送次数
  385. notBlackListDate: 7 #不在邮箱黑名单中的垃圾询盘计数的天数
  386. ip:
  387. tenMinNum: 3 # 10分钟内最多发送次数 >
  388. oneDayNum: 5 # 一天内最多发送次数 >
  389. notBlackListNum: 3 #不在Ip黑名单中垃圾询盘计数次数 >
  390. notBlackListDate: 7 #不在Ip黑名单中垃圾询盘计数的天数
  391. delOrdIpDate: 90 #删除时效性低的Ip时间
  392. ### dataforseo
  393. dataforseo:
  394. username: advichdev@gmail.com
  395. password: 0845d3de83295cca
  396. api-path: https://api.dataforseo.com
  397. ### 询盘列表配置
  398. enquiry:
  399. disable-admin-read: true
  400. demoFlag: false
  401. token: zQ3jJqtIexedIw6tZGk6p
  402. pullCount: 5
  403. # 亚马逊翻译api
  404. aws:
  405. translate:
  406. accessKey: AKIAS37NJDKDETZ7PPEN
  407. secretKey: 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
  408. ### 自定义 start, TODO 改位置配置将要再数据库中配置
  409. ###配置测试文件上传路径
  410. adcloud:
  411. file:
  412. rootpath: /opt/adweb3/static/
  413. picture:
  414. ###图片压缩程度
  415. size: 0.8
  416. #物料收集打包临时存放路径
  417. admp:
  418. #脚本
  419. shell:
  420. path: /opt/adweb3/shell/
  421. #跳板机配置
  422. jumpServer:
  423. pulicIp: 52.11.145.237
  424. privateIp: 10.10.54.109
  425. username: ubuntu
  426. pem: /home/jiangning/adweb2.1/static/jumpserver.pem
  427. #建站链接生产环境配置
  428. AdwebSiteProdConnect:
  429. privateIp: 10.10.182.222
  430. #118机器信息
  431. usWest118Server:
  432. ip: 44.227.32.118
  433. username: centos
  434. pem: D:/Advich/pem/197529246342-oregon.cer
  435. port: 50002
  436. shellpath: /usr/local/adweb-v2/shell
  437. #v2项目路径
  438. v2:
  439. projectPath: /opt/adweb3/pem
  440. seoReportPath: /seopdf/report/
  441. domainUrl: https://cyan.feishu.adwebcloud.com
  442. pdfExportServiceUrl: https://puppeteer.advichcloud.com:7020
  443. #建站链接测试环境配置
  444. AdwebSiteConnect:
  445. host: 35.87.155.71
  446. port: 22
  447. username: ubuntu
  448. password: adweb123@2024
  449. tempDomain: adweb3.topxuetang.com
  450. tempCname: devci2.adwebcloud.com
  451. serverIp:
  452. new: 52.83.132.56
  453. old: 52.83.52.93
  454. #pem文件上传公网地址前缀
  455. pemFileDownLoad:
  456. prefix: https://v2.adwebcloud.com/keys/
  457. ### 自定义 end TODO 改位置配置将要再数据库中配置