refactor: update config file
This commit is contained in:
69
config/config_local.yaml
Normal file
69
config/config_local.yaml
Normal file
@@ -0,0 +1,69 @@
|
||||
server:
|
||||
port: 8024
|
||||
mode: debug # debug/release
|
||||
|
||||
database:
|
||||
driver: mysql
|
||||
host: 192.168.5.56
|
||||
port: 3006
|
||||
username: root
|
||||
password: root123
|
||||
dbname: doc_ai
|
||||
max_idle: 10
|
||||
max_open: 100
|
||||
|
||||
redis:
|
||||
addr: 192.168.5.56:6079
|
||||
password: redis123
|
||||
db: 0
|
||||
|
||||
limit:
|
||||
formula_recognition: 3
|
||||
|
||||
log:
|
||||
appName: document_ai
|
||||
level: info
|
||||
format: console # json, console
|
||||
outputPath: ./logs/app.log # 日志文件路径
|
||||
maxSize: 2 # 单个日志文件最大尺寸,单位MB
|
||||
maxAge: 1 # 日志保留天数
|
||||
maxBackups: 1 # 保留的旧日志文件最大数量
|
||||
compress: false # 是否压缩旧日志
|
||||
|
||||
aliyun:
|
||||
sms:
|
||||
access_key_id: "LTAI5tB9ur4ExCF4dYPq7hLz"
|
||||
access_key_secret: "91HulOdaCpwhfBesrUDiKYvyi0Qkx1"
|
||||
sign_name: "北京比特智源科技"
|
||||
template_code: "SMS_291510729"
|
||||
|
||||
oss:
|
||||
endpoint: static.texpixel.com
|
||||
inner_endpoint: oss-cn-beijing-internal.aliyuncs.com
|
||||
access_key_id: LTAI5t8qXhow6NCdYDtu1saF
|
||||
access_key_secret: qZ2SwYsNCEBckCVSOszH31yYwXU44A
|
||||
bucket_name: texpixel-doc1
|
||||
|
||||
mathpix:
|
||||
app_id: "ocr_eede6f_ea9b5c"
|
||||
app_key: "fb72d251e33ac85c929bfd4eec40d78368d08d82fb2ee1cffb04a8bb967d1db5"
|
||||
|
||||
baidu_ocr:
|
||||
token: "e3a47bd2438f1f38840c203fc5939d17a54482d1"
|
||||
|
||||
google:
|
||||
client_id: "404402221037-nqdsk11bkpk5a7oh396mrg1ieh28u6q1.apps.googleusercontent.com"
|
||||
client_secret: "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"
|
||||
redirect_uri: "https://app.cloud.texpixel.com:10443/auth/google/callback"
|
||||
proxy: "http://192.168.5.56:7890"
|
||||
|
||||
email:
|
||||
from_name: "TexPixel Support"
|
||||
from_addr: "support@texpixel.com"
|
||||
aliyun_smtp:
|
||||
host: "smtp.qiye.aliyun.com"
|
||||
port: 465
|
||||
username: "support@texpixel.com"
|
||||
password: "8bPw2W9LlgHSTTfk"
|
||||
resend:
|
||||
api_key: "re_dZxRaFAB_D5YME7u6kdRmDxqw4v1G7t87"
|
||||
Reference in New Issue
Block a user