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
|