Files
keyboard_backend/src/main/resources/application-prod.yml

114 lines
4.0 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.
spring:
datasource:
driver-class-name: org.postgresql.Driver
url: jdbc:postgresql://43.162.81.217:5231/keyborad_db
username: root
password: dpW7FHZ7FtK5czc4
data:
redis:
port: 6379
host: localhost
database: 0
# 生产环境日志配置
logging:
level:
# 生产环境不打印 SQL 语句
com.yolo.keyborad.mapper: INFO
# 设置根日志级别
root: INFO
# Spring 框架日志
org.springframework: WARN
# MyBatis 日志
org.mybatis: WARN
file:
# 日志文件存放路径
name: logs/keyborad-backend.log
# 用户配置
user:
register:
# 新用户注册时的免费试用额度
free-trial-quota: 5
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: "PRODUCTION"
# 用于验证服务器通知的 Apple PKI 根证书
root-certificates:
- "classpath:AppleRootCA-G2.cer"
- "classpath:AppleRootCA-G3.cer"
nacos:
config:
server-addr: 127.0.0.1:8848
group: DEFAULT_GROUP
data-id: keyboard_default-config.yaml
############## 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
elevenlabs:
api-key: sk_25339d32bb14c91f460ed9fce83a1951672f07846a7a10ce
voice-id: JBFqnCBsd6RMkjVDRZzb
model-id: eleven_turbo_v2_5
output-format: mp3_44100_128
deepgram:
api-key: 9c792eb63a65d644cbc95785155754cd1e84f8cf
model: nova-2
language: en
smart-format: true
punctuate: true
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/ # 基础路径
- platform: cloudflare-r2-apac # 存储平台标识
enable-storage: true # 启用存储
access-key: eda135fe4fda649acecfa4bb49b0c30c
secret-key: ee557acaccf44caef985b5cac89db311a0923c72c9f4b8c5f32089c6ebb47a79
region: APAC # 区域
end-point: https://b632a61caa85401f63c9b32eef3a74c8.r2.cloudflarestorage.com/keyboardtest # 端点
bucket-name: keyboardtest #桶名称
domain: https://cdn.loveamorkey.com/ # 访问域名,注意末尾的'/'例如https://abcd.s3.ap-east-1.amazonaws.com/
base-path: tts/ # 基础路径