lrj
3 天以前 7ba080d35812e6db7bd5aa8f88161c02653eb6c1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
server:
  port: 8080
  servlet:
    context-path: /api
 
spring:
  application:
    name: ryc-backend
  
  # 数据库配置
  datasource:
    url: jdbc:mysql://139.155.104.10:3306/ryc?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
    username: ryc
    password: KiYap3E8X8RLcM6T
    driver-class-name: com.mysql.cj.jdbc.Driver
    
  # JPA配置
  jpa:
    hibernate:
      ddl-auto: none
    show-sql: true
    properties:
      hibernate:
        dialect: org.hibernate.dialect.MySQLDialect
        format_sql: true
    
  # GraphQL配置
  graphql:
    path: /graphql
    graphiql:
      enabled: true
      path: /graphiql
    cors:
      allow-credentials: true
      allowed-headers: '*'
      allowed-methods: '*'
    schema:
      locations:
        - classpath*:graphql/**/
      file-extensions:
        - .graphqls
        - .gqls
      printer:
        enabled: true
      
  # RabbitMQ配置
  rabbitmq:
    host: 139.155.104.10
    port: 5672
    virtual-host: ryc_prod
    username: admin
    password: ycl@2020
    connection-timeout: 15000
    
  # 文件上传配置
  servlet:
    multipart:
      max-file-size: 50MB
      max-request-size: 50MB
 
# 腾讯云COS配置
cos:
  secret-id: AKIDfSG2e3Gev1xgBTaVDiz2rTr790d3FH8l
  secret-key: VmqgIh1B9aopcCYklbBdsthaHkeS3RbY
  bucket: ryc-1379367838
  region: ap-chengdu
 
# 日志配置
logging:
  level:
    com.rongyichuang: DEBUG
    org.springframework.security: DEBUG
    org.hibernate.SQL: DEBUG
    org.hibernate.type.descriptor.sql.BasicBinder: TRACE
 
# 应用配置
app:
  base-url: https://rych.9village.cn
  jwt:
    secret: ryc-jwt-secret-key-2024-secure-256bit-hmac-sha-algorithm-compatible
    expiration: 86400000 # 24小时
  media-url:  https://ryc-1379367838.cos.ap-chengdu.myqcloud.com