Files
novel_server/manifest/config/config.yaml

48 lines
862 B
YAML

# Server configuration.
server:
address: ":9010"
openapiPath: "/api.json"
swaggerPath: "/swagger"
# Logger configuration.
logger:
level : "all"
stdout: true
# Database configuration.
database:
logger:
level: "all"
stdout: true
default:
link: "mysql:root:MSms0427@tcp(127.0.0.1:3306)/novel2?loc=Local&charset=utf8mb4"
debug: true
# Redis configuration.
redis:
default:
address: "127.0.0.1:6379"
# Casbin model
casbin:
modelPath: "./manifest/config/rbac_model.conf"
#OSS配置
oss:
s3:
bucket: "iosnovel"
key: "AKIA2OAJT2TMKO6YTRA3"
secret: "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"
region: "us-east-1"
# AWS
aws:
key: "AKIA2OAJT2TMKO6YTRA3"
secret: "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"
region: "us-east-1"
accountId: "717279712472"
#SQS
sqs:
ads: "test-ads" # 广告记录队列