Files
exchange_go/config/settings.yml

125 lines
3.5 KiB
YAML
Raw Permalink Normal View History

2025-02-06 11:14:33 +08:00
settings:
application:
# dev开发环境 test测试环境 prod线上环境
mode: dev
# 服务器ip默认使用 0.0.0.0
host: 0.0.0.0
# 服务名称
2025-02-08 14:05:57 +08:00
name: exchange_go
2025-02-06 11:14:33 +08:00
# 端口号
port: 6789 # 服务端口号
readtimeout: 1
writertimeout: 2
# 数据权限功能开关
2025-03-21 20:44:35 +08:00
enabledp: true
2025-02-06 11:14:33 +08:00
logger:
# 日志存放路径
path: temp/logs
# 日志输出file文件default命令行其他命令行
stdout: '' #控制台日志,启用后,不输出到文件
# 日志等级, trace, debug, info, warn, error, fatal
level: trace
# 数据库日志开关
enableddb: false
jwt:
# token 密钥,生产环境时及的修改
secret: go-admin
# token 过期时间 单位:秒
timeout: 259200
database:
# 数据库类型 mysql, sqlite3, postgres, sqlserver
# sqlserver: sqlserver://用户名:密码@地址?database=数据库名
driver: mysql
# 数据库连接字符串 mysql 缺省信息 charset=utf8&parseTime=True&loc=Local&timeout=1000ms
2025-03-19 09:38:11 +08:00
source: root:123456@tcp(127.0.0.1:3306)/go_exchange_single?charset=utf8mb4&parseTime=True&loc=Local&timeout=1000ms
2025-02-06 11:14:33 +08:00
# databases:
# 'locaohost:8000':
# driver: mysql
# # 数据库连接字符串 mysql 缺省信息 charset=utf8&parseTime=True&loc=Local&timeout=1000ms
# source: user:password@tcp(127.0.0.1:3306)/dbname?charset=utf8&parseTime=True&loc=Local&timeout=1000ms
# registers:
# - sources:
# - user:password@tcp(127.0.0.1:3306)/dbname?charset=utf8&parseTime=True&loc=Local&timeout=1000ms
gen:
# 代码生成读取的数据库名称
2025-02-08 18:01:53 +08:00
dbname: go_exchange_single
2025-02-06 11:14:33 +08:00
# 代码生成是使用前端代码存放位置需要指定到src文件夹相对路径
frontpath: ../go-admin-ui/src
extend: # 扩展项使用说明
demo:
name: data
# redis 配置
redis:
2025-03-27 16:18:32 +08:00
addr: "127.0.0.1:6379"
2025-02-06 11:14:33 +08:00
password: ""
2025-02-08 18:01:53 +08:00
db: 2
2025-02-06 11:14:33 +08:00
# 雪花算法设备id
serviceId: 1
#代理
proxyUrl: "http://127.0.0.1:7890"
#币安配置
binanceSet:
spotRestURL: "https://api.binance.com"
futRestURL: "https://fapi.binance.com"
# 邮箱发送配置
emailConfig:
mail_smtp_host: "smtp.163.com"
mail_smtp_port: "465"
mail_smtp_user: "daichaodsy@163.com"
mail_smtp_pass: "QCKTZWTREARMGDZN"
mail_verify_type: "ssl"
mail_from: "daichaodsy@163.com"
# 网站域名
domain: "https://192.168.123.242"
#GoToneSms 短信配置
GoToneSmsConfig:
sender_id: "GoTone SMS"
api_endpoint: "https://gosms.one/api/v3/sms/send"
2025-02-27 15:05:34 +08:00
authorization: "CVZgh3iIAQpJuvaakQmxOo9q2uOb7Veqs7ls5KIX263d87ee"
2025-03-21 20:44:35 +08:00
InnoPaas:
url: "http://intapi.sgap.253.com"
apiKey: "OI1706483"
password: "N4R84hhVvP6505"
2025-02-06 11:14:33 +08:00
#UDun 配置
UDunConfig:
UDunUrl: "https://sig10.udun.io"
UDunMerchantID: "318322"
UDunKey: "e5b52a5da3f112d457b35387f2bf1001"
CurrServerIp: ""
#coingate 配置
coingate:
auth: "8hX6L1weBP9jxja5sKaEzyqB7UY2SQUC_JLAWgyM"
endPoint: "https://api-sandbox.coingate.com"
cache:
# redis:
# addr: 127.0.0.1:6379
# password: xxxxxx
# db: 2
# key存在即可
memory: ''
queue:
memory:
poolSize: 100
# redis:
# addr: 127.0.0.1:6379
# password: xxxxxx
# producer:
# streamMaxLength: 100
# approximateMaxLength: true
# consumer:
# visibilityTimeout: 60
# bufferSize: 100
# concurrency: 10
# blockingTimeout: 5
# reclaimInterval: 1
locker:
redis: