86 lines
2.1 KiB
YAML
86 lines
2.1 KiB
YAML
spring:
|
||
application:
|
||
name: mengyastore-backend-java
|
||
profiles:
|
||
active: dev
|
||
|
||
datasource:
|
||
url: jdbc:mysql://10.1.1.100:3306/mengyastore-test?charset=utf8mb4&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true
|
||
username: mengyastore-test
|
||
password: mengyastore-test
|
||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||
|
||
jpa:
|
||
hibernate:
|
||
ddl-auto: update
|
||
show-sql: false
|
||
properties:
|
||
hibernate:
|
||
dialect: org.hibernate.dialect.MySQLDialect
|
||
format_sql: false
|
||
|
||
rabbitmq:
|
||
host: 10.1.1.233
|
||
port: 5672
|
||
username: admin
|
||
# 请将此密码替换为真实的 RabbitMQ 密码,然后将 app.rabbitmq-enabled 设为 true
|
||
password: shumengya520
|
||
virtual-host: mengyastore-dev
|
||
listener:
|
||
simple:
|
||
acknowledge-mode: manual
|
||
prefetch: 1
|
||
|
||
data:
|
||
redis:
|
||
host: 10.1.1.100
|
||
port: 6379
|
||
password: tyh@19900420
|
||
database: 1
|
||
timeout: 3000ms
|
||
|
||
mail:
|
||
host: smtp.qq.com
|
||
port: 465
|
||
username: ""
|
||
password: ""
|
||
properties:
|
||
mail:
|
||
smtp:
|
||
auth: true
|
||
ssl:
|
||
enable: true
|
||
socketFactory:
|
||
port: 465
|
||
class: javax.net.ssl.SSLSocketFactory
|
||
fallback: false
|
||
|
||
server:
|
||
port: 8080
|
||
|
||
app:
|
||
admin-token: shumengya520
|
||
auth-api-url: https://auth.api.shumengya.top
|
||
# 对应 Go 的 APP_ENV:development | production(系统状态页「应用环境」)
|
||
app-env: development
|
||
# 对应 Go 的 REDIS_ENABLED;false 时系统状态里 Redis 为「未启用」且不再探测
|
||
redis-enabled: true
|
||
# 对应 Go 后端的 RABBITMQ_ENABLED;默认关闭,密码配置正确后再改为 true
|
||
rabbitmq-enabled: true
|
||
rabbitmq-env: dev
|
||
redis-env: dev
|
||
public-api-base-url: ""
|
||
cors-allowed-origins: "http://localhost:5173,http://localhost:3000,http://localhost:5174"
|
||
|
||
# SMTP 在库里配置前无用户名密码;关闭邮件健康检查避免启动后打 ERROR 日志
|
||
management:
|
||
health:
|
||
mail:
|
||
enabled: false
|
||
|
||
logging:
|
||
level:
|
||
com.smyhub.store: INFO
|
||
org.springframework.amqp: WARN
|
||
org.springframework.data.redis: WARN
|