You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
885 B
40 lines
885 B
# Factory Sliceing 配置文件示例 |
|
# 复制此文件为 config.toml 并根据实际情况修改配置 |
|
|
|
# Redis 配置 |
|
[redis] |
|
host = "your-redis-host" |
|
password = "your-redis-password" |
|
port = 6379 |
|
db = 6 |
|
socket_timeout = 30 |
|
socket_connect_timeout = 10 |
|
socket_keepalive = true |
|
health_check_interval = 30 |
|
|
|
# Redis 重试配置 |
|
[redis.retry] |
|
retry_interval = 5 |
|
max_retry_interval = 60 |
|
|
|
# OSS 配置 |
|
[oss] |
|
access_key_id = "your-access-key-id" |
|
access_key_secret = "your-access-key-secret" |
|
endpoint = "oss-cn-shanghai.aliyuncs.com" |
|
bucket = "your-bucket-name" |
|
|
|
# API 配置 |
|
[api] |
|
base_url = "https://mp.api.suwa3d.com" |
|
env = "prod" # prod 或 dev |
|
# dev_url = "http://mp.api.dev.com" # 开发环境 URL(可选) |
|
|
|
# 工作目录配置 |
|
[work] |
|
default_dir = "" # 默认工作目录,为空则使用脚本所在目录 |
|
|
|
# 日志配置 |
|
[log] |
|
level = "INFO" # DEBUG, INFO, WARNING, ERROR |
|
|
|
|