Initial project
This commit is contained in:
101
src/main/resources/application.yml
Normal file
101
src/main/resources/application.yml
Normal file
@@ -0,0 +1,101 @@
|
||||
server:
|
||||
port: 8091
|
||||
shutdown: graceful
|
||||
|
||||
# 开发环境语言,激活开发配置时,多语言系统始终使用此语言环境
|
||||
dev:
|
||||
lang: zh_CN
|
||||
|
||||
# 日志配置
|
||||
logging:
|
||||
config: config/logback.xml
|
||||
|
||||
# Spring
|
||||
spring:
|
||||
profiles:
|
||||
active: prod
|
||||
servlet:
|
||||
multipart:
|
||||
max-file-size: 4GB
|
||||
max-request-size: 4GB
|
||||
lifecycle:
|
||||
timeout-per-shutdown-phase: 32s
|
||||
async:
|
||||
thread-pool:
|
||||
core-pool-size: 16
|
||||
max-pool-size: 32
|
||||
queueCapacity: 16
|
||||
keep-alive-seconds: 60
|
||||
thread-name-prefix: thread-pool-task-executor-
|
||||
await-termination-seconds: 60
|
||||
mail: # 邮件配置
|
||||
host: smtp.qq.com
|
||||
username: imyeyu@qq.com
|
||||
password: saodifhaposjfoas
|
||||
properties:
|
||||
mail:
|
||||
smtp:
|
||||
auth: true
|
||||
starttls:
|
||||
enable: true
|
||||
required: true
|
||||
default-encoding: UTF-8
|
||||
mvc: # JSON 序列化
|
||||
converters:
|
||||
preferred-json-mapper: gson # 返回 JSON 序列化使用 GSON
|
||||
redis: # Redis 数据库
|
||||
host: dev.vm.imyeyu.test
|
||||
port: 6379
|
||||
password:
|
||||
timeout: 8000
|
||||
database:
|
||||
locker: 0 # ID: Integer 全局锁,ID 规范:应用:模块:业务:方法
|
||||
multilingual: 1 # ID: Multilingual 多语言缓存
|
||||
multilingual-map: 2 # Key: ID 多语言键缓存
|
||||
article-ranking: 3 # AID: ArticleRanking(JSON) 热门文章排位
|
||||
article-read: 4 # IP: [AID..] IP 阅读文章记录
|
||||
user-token: 5 # TOKEN: LONG 用户登录令牌
|
||||
user-exp-flag: 6 # UID: NULL 用户登录经验标记,暂时没有值,数据死亡时间为次日零时
|
||||
user-email-verify: 7 # AES_KEY: UID 邮箱验证密钥缓存
|
||||
user-reset-pw-verify: 8 # AES_KEY: UID 重置密码密钥缓存
|
||||
qps-limit: 9 # APP.IP.method: COUNT_IN_LIFE_CYCLE 接口访问频率控制(多个系统公用,需要 App 标记)
|
||||
setting: 10 # Setting: SettingValue 系统配置
|
||||
fmc-player-token: 11 # TOKEN: USER_ID|PLAYER_ID MC 登录缓存
|
||||
lettuce: # 连接池配置
|
||||
pool:
|
||||
max-wait: -1
|
||||
max-idle: 8
|
||||
min-idle: 0
|
||||
max-active: 8
|
||||
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
|
||||
|
||||
# CORS 跨域
|
||||
cors:
|
||||
# 允许访问的客户端域名,如:http://web.xxx.com,* 表示不做任何限制(不做任何限制时 allow-credentials 无效)
|
||||
allow-origin:
|
||||
- "http://localhost:8080"
|
||||
allow-methods: "*" # 允许请求的方法名,多个方法名逗号分割,如:GET, POST, PUT, DELETE, OPTIONS
|
||||
allow-credentials: true # 是否允许请求带有验证信息,若要获取客户端域下的 Cookie 或 Session 时,设置为 true
|
||||
allow-headers: "*" # 允许服务端访问的客户端请求头,多个请求头逗号分割,如:Content-BizType
|
||||
Reference in New Issue
Block a user