# 生产环境配置（Linux）
yushu:
  # 文件路径 Linux配置
  profile: /home/yushu/upload
  # 图标存储路径
  icon:
    path: /home/yushu/icons

# 生产环境服务器配置
server:
  port: 8080

# 数据源配置
spring:
  datasource:
    type: com.alibaba.druid.pool.DruidDataSource
    driverClassName: com.mysql.cj.jdbc.Driver
    druid:
      master:
        url: jdbc:mysql://localhost:3306/yushu?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
        username: yushu
        password: ${MYSQL_PASSWORD:your_password}
      slave:
        enabled: false
      initialSize: 10
      minIdle: 20
      maxActive: 50
      maxWait: 60000
      connectTimeout: 30000
      socketTimeout: 60000
      timeBetweenEvictionRunsMillis: 60000
      minEvictableIdleTimeMillis: 300000
      maxEvictableIdleTimeMillis: 900000
      validationQuery: SELECT 1 FROM DUAL
      testWhileIdle: true
      testOnBorrow: false
      testOnReturn: false
      webStatFilter:
        enabled: false
      statViewServlet:
        enabled: false
      filter:
        stat:
          enabled: true
          log-slow-sql: true
          slow-sql-millis: 1000
          merge-sql: true
        wall:
          config:
            multi-statement-allow: true

# 文件存储配置
file:
  storage:
    type: local
    local:
      # Linux 文件存储路径
      base-path: /home/yushu/upload
      # 生产环境URL前缀
      url-prefix: https://your-domain.com/profile
      max-file-size: 100
      allowed-extensions:
        - jpg
        - jpeg
        - png
        - gif
        - pdf
        - doc
        - docx
        - xls
        - xlsx
        - ppt
        - pptx
        - txt
        - zip
        - rar
        - mp4
        - mp3
        - wav

# 日志配置
logging:
  level:
    com.yushu: info
    org.springframework: warn
