Files
myplayer-backend/src/main/resources/application_template.yaml
merlin c58ad923c5
All checks were successful
dev middleware install / deploy (push) Successful in 52s
feat: add PlayroomWebSocketHandler
2026-04-04 17:41:28 +08:00

96 lines
1.8 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
server:
port: 8080
jwt:
secret:
issuer:
subject:
expire: 604800
aes:
# aes16/32/48位key
key:
resources:
public: C://resources/public
user:
avatar: C://resources/user/avatar
group:
avatar: C://resources/group/avatar
playroom:
avatar: C://resources/group/avatar
spring:
application:
name: myplayer-backend
servlet:
multipart:
max-file-size: 50MB
max-request-size: 10MB
datasource:
driver-class-name: org.postgresql.Driver
url: jdbc:postgresql://localhost:5432/myplayer
username:
password:
mail:
protocol: smtps
port: 465
default-encoding: utf-8
host: smtp.163.com
username:
password:
properties:
mail:
smtp:
auth: true
ssl:
enable: false
required: false
protocols: TLSv1.2
connectiontimeout: 10000
timeout: 15000
writetimeout: 10000
debug: true
data:
redis:
host: localhost
port: 6379
password: dctf8nUrn3
# database: 0
timeout: 2000
lettuce:
pool:
max-active: 8
max-idle: 8
min-idle: 0
rabbitmq:
host: localhost
port: 5672
username: user
password: Aqe5U57kvj50k7rG
virtual-host: /
mybatis-plus:
global-config:
db-config:
table-prefix: "" # 可选:表前缀(没有可以留空)
id-type: auto # 主键策略
configuration:
map-underscore-to-camel-case: false # 禁用驼峰命名自动映射
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # 控制台打印 SQL调试用
logging:
level:
org:
springframework:
security: DEBUG
springdoc:
api-docs:
enabled: true
path: /v3/api-docs
swagger-ui:
enabled: true
path: /v3/api-docs/swagger-ui.html