zqy
2 天以前 5418ea7855d16dcc0169d5ed554f7a23c4b55532
ruoyi-admin/src/main/resources/application.yml
@@ -19,6 +19,14 @@
server:
  # 服务器的HTTP端口,默认为8080
  port: 8080
  ssl: #ssl配置
    # resources根目录的”证书源文件.pfx“
    key-store: classpath:www.bendudu.com.pfx
    # “.pfx”证书对应格式,“.jks"证书对应“RSA”
    key-store-type: PKCS12
    key-store-password: uns191i1
    #key-password: 私钥密码
  servlet:
    # 应用的访问路径
    context-path: /
@@ -49,19 +57,23 @@
# Spring配置
spring:
  #es配置
  elasticsearch:
    host: localhost
    port: 8087
  # 资源信息
  messages:
    # 国际化资源文件路径
    basename: i18n/messages
  profiles:
  profiles:
    active: druid
  # 文件上传
  servlet:
     multipart:
       # 单个文件大小
       max-file-size:  10MB
       max-file-size:  1000MB
       # 设置总上传的文件大小
       max-request-size:  20MB
       max-request-size:  200000MB
  # 服务模块
  devtools:
    restart:
@@ -90,6 +102,28 @@
        max-active: 8
        # #连接池最大阻塞等待时间(使用负值表示没有限制)
        max-wait: -1ms
  #邮箱配置
  mail:
    host: smtp.qq.com
    port: 587
    #邮箱
    username: 3224414357@qq.com
    #授权码
    password: wmsreabbwlmacjhe
    protocol: smtp
    properties:
#      mail.debug: true
      mail.smtp.auth: true
      mail.smtp.starttls.enable: true
      mail.smtp.starttls.required: true
      mail.smtp.ehlo: true # 关键修复
      mail.smtp.ssl.trust: smtp.qq.com
      mail.smtp.ssl.protocols: TLSv1.2
    default-encoding: UTF-8
    # 特定模块的缓存过期时间
    cache:
      cache-names:
        economy_search: 1800       # economy_search缓存1小时
# token配置
token:
@@ -98,8 +132,8 @@
    # 令牌密钥
    secret: abcdefghijklmnopqrstuvwxyz
    # 令牌有效期(默认30分钟)
    expireTime: 60
    expireTime: 100
# MyBatis配置
mybatis-plus:
    # 搜索指定包别名
@@ -110,7 +144,7 @@
#    configLocation: classpath:mybatis/mybatis-config.xml
# PageHelper分页插件
pagehelper:
pagehelper:
  helperDialect: mysql
  supportMethodsArguments: true
  params: count=countSql
@@ -124,7 +158,7 @@
  pathMapping: /dev-api
# 防止XSS攻击
xss:
xss:
  # 过滤开关
  enabled: true
  # 排除链接(多个用逗号分隔)
@@ -132,3 +166,18 @@
  # 匹配链接
  urlPatterns: /system/*,/monitor/*,/tool/*
#腾讯云
tencent:
  cos:
    secret-id: AKID3ykKitsgIkz2tY0EE3g6IWcWDi087tse       # 替换为实际SecretId
    secret-key: d4NckmibQApMvIRcbNwHOIyQdoxyvjLj    # 替换为实际SecretKey
    bucket-name: bendudu-bucket-1325664559  # 存储桶名称
    region: ap-guangzhou            # 存储桶地域
    base-url: https://bendudu-bucket-1325664559.cos.ap-guangzhou.myqcloud.com # 访问基础URL