54 lines
1.8 KiB
YAML
54 lines
1.8 KiB
YAML
server:
|
|
port: 8091
|
|
|
|
# Spring
|
|
spring:
|
|
profiles:
|
|
active: prod
|
|
mail: # 邮件配置
|
|
host: smtp.qq.com
|
|
username: imyeyu@qq.com
|
|
password: saodifhaposjfoas
|
|
redis: # Redis 数据库
|
|
host: dev.vm.imyeyu.test
|
|
port: 6379
|
|
password:
|
|
database: 0
|
|
datasource: # 数据库配置
|
|
timiserver:
|
|
jdbc-url: jdbc:mysql://dev.vm.imyeyu.test:3306/timi_server?serverTimezone=UTC&characterEncoding=UTF-8
|
|
username: root
|
|
password: 123123
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
forevermc:
|
|
jdbc-url: jdbc:mysql://dev.vm.imyeyu.test:3306/authme?serverTimezone=UTC&characterEncoding=UTF-8
|
|
username: root
|
|
password: 123123
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
gitea:
|
|
jdbc-url: jdbc:mysql://dev.vm.imyeyu.test:3306/authme?serverTimezone=UTC&characterEncoding=UTF-8
|
|
username: root
|
|
password: 123123
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
data:
|
|
mongodb:
|
|
host: dev.vm.imyeyu.test
|
|
port: 27017
|
|
database: db
|
|
username: root
|
|
password: qweqwe123
|
|
flyway:
|
|
enabled: true
|
|
locations: classpath:db/migration/timiserver
|
|
url: ${spring.datasource.timiserver.jdbc-url}
|
|
user: ${spring.datasource.timiserver.username}
|
|
password: ${spring.datasource.timiserver.password}
|
|
baseline-on-migrate: false
|
|
validate-on-migrate: true
|
|
|
|
# CORS 跨域
|
|
cors:
|
|
# 允许访问的客户端域名,如:http://web.xxx.com,* 表示不做任何限制(不做任何限制时 allow-credentials 无效)
|
|
allow-origin:
|
|
- "http://localhost:8080"
|