Files
keyboard_backend/src/main/resources/application-dev.yml
ziin a237bc2987 refactor(config): 合并用户注册配置并调整默认配额
将 UserRegisterProperties 内嵌到 AppConfig,删除独立配置类;
freeTrialQuota 由 5 改为 3,新增 rewardBalance 字段;
同步更新 UserServiceImpl 初始化逻辑及 yml 配置。
2025-12-17 13:24:38 +08:00

93 lines
2.7 KiB
YAML

spring:
datasource:
driver-class-name: org.postgresql.Driver
url: jdbc:postgresql://localhost:5432/keyborad_db
username: root
password: 123asd
# ????
logging:
level:
# ?? mapper ??????? DEBUG??? SQL ??
com.yolo.keyborad.mapper: DEBUG
# ???????
root: INFO
# Spring ????
org.springframework: INFO
# MyBatis ??
org.mybatis: DEBUG
pattern:
# ?????????
# ??-????????-?????????ID-?????-?????-?????-???
console: "%d{yyyy-MM-dd HH:mm:ss.SSS} | %clr(%-5level){highlight} %clr(${PID:- }){magenta} | %clr(%-15thread){yellow} %clr(%-50logger{50}){cyan} | %msg%n"
knife4j:
enable: true
openapi:
title: "????"
version: 1.0
group:
default:
api-rule: package
api-rule-resources:
- com.yolo.keyborad.controller
apple:
appstore:
issuer-id: "178b442e-b7be-4526-bd13-ab293d019df0"
key-id: "Y7TF7BV74G"
bundle-id: "com.loveKey.nyx"
# app ? App Store ? Apple ID???????????
app-apple-id: 1234567890
# p8 ???????????? resources ??
private-key-path: "classpath:SubscriptionKey_Y7TF7BV74G.p8"
# SANDBOX ? PRODUCTION
environment: "SANDBOX"
# ??????? Apple PKI ???
root-certificates:
- "classpath:AppleRootCA-G2.cer"
- "classpath:AppleRootCA-G3.cer"
dromara:
x-file-storage: #??????
default-platform: cloudflare-r2 #?????????
thumbnail-suffix: ".min.jpg" #?????????.min.jpg??.png?
enable-byte-file-wrapper: false
#???????????????????
amazon-s3-v2: # Amazon S3 V2
- platform: cloudflare-r2 # ??????
enable-storage: true # ????
access-key: 550b33cc4d53e05c2e438601f8a0e209
secret-key: df4d529cdae44e6f614ca04f4dc0f1f9a299e57367181243e8abdc7f7c28e99a
region: ENAM # ??
end-point: https://b632a61caa85401f63c9b32eef3a74c8.r2.cloudflarestorage.com # ??
bucket-name: keyborad-resource #???
domain: https://resource.loveamorkey.com/ # ????????/???????https://abcd.s3.ap-east-1.amazonaws.com/
base-path: avatar/ # ????
############## Sa-Token ?? (??: https://sa-token.cc) ##############
sa-token:
# token ??????? cookie ???
token-name: auth-token
# token ????????? ??30??-1 ??????
timeout: 2592000
# token ??????????????? token ???????????????????-1 ??????????
active-timeout: -1
# ?????????????? ?? true ???????, ? false ??????????
is-concurrent: true
# ????????????????? token ?? true ????????? token, ? false ????????? token?
is-share: false
# token ?????????uuid?simple-uuid?random-32?random-64?random-128?tik?
token-style: random-128
# ????????
is-log: true
nacos:
config:
server-addr: 127.0.0.1:8848
group: DEFAULT_GROUP
data-id: keyboard_default-config.yaml