service/service.yml

16 lines
709 B
YAML
Raw Permalink 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.

listen: 8080 # 监听端口
ssl: # 设置SSL证书
# ____:
# certFile:
# keyFile:
app: '' # 指定应用名称将自动注册为服务,需要配置 registry
registry: '' # 服务发现注册中心,请配置一个 redis://:password@127.0.0.1:6379/15
accessTokens: # 设置访问令牌对应的token将获得对应的权限等级
# ___: 1
calls: # 配置将要调用的服务和访问时使用的令牌
# ___: '___'
userIdKey: 'id' # 设置存储在Session中的用户ID字段会将用户ID记录在日志中
static: # 设置静态文件目录
# '/': 'www/'
verifyFieldMessage: 参数验证失败:{{FAILED_FIELDS}}