|
@@ -1,7 +1,7 @@
|
|
# 代理网关服务配置
|
|
# 代理网关服务配置
|
|
server:
|
|
server:
|
|
# 基本配置
|
|
# 基本配置
|
|
- address: :8080 # 本地监听地址。默认":80"
|
|
|
|
|
|
+ address: :8077 # 本地监听地址。默认":80"
|
|
readTimeout: 60s # 请求读取超时时间,一般不需要配置。默认为60秒
|
|
readTimeout: 60s # 请求读取超时时间,一般不需要配置。默认为60秒
|
|
maxHeaderBytes: 10240 # 请求Header大小限制(Byte)。默认为10KB
|
|
maxHeaderBytes: 10240 # 请求Header大小限制(Byte)。默认为10KB
|
|
serverAgent: jianyu Gateway # 服务端Agent信息。默认为"GF HTTP Server"
|
|
serverAgent: jianyu Gateway # 服务端Agent信息。默认为"GF HTTP Server"
|
|
@@ -23,17 +23,17 @@ etcd:
|
|
userCenter:
|
|
userCenter:
|
|
key: usercenter.rpc
|
|
key: usercenter.rpc
|
|
address:
|
|
address:
|
|
- - 127.0.0.1:23792
|
|
|
|
|
|
+ - 192.168.3.240:2379
|
|
# 资源中台配置
|
|
# 资源中台配置
|
|
resourceCenter:
|
|
resourceCenter:
|
|
key: resource.rpc
|
|
key: resource.rpc
|
|
address:
|
|
address:
|
|
- - 127.0.0.1:23791
|
|
|
|
|
|
+ - 192.168.3.240:2379
|
|
|
|
|
|
#数据库配置
|
|
#数据库配置
|
|
databases:
|
|
databases:
|
|
# redis配置
|
|
# redis配置
|
|
- redis: session=123.56.53.97:1713,other=123.56.53.97:1713 # 用户获取剑鱼程序用户session
|
|
|
|
|
|
+ redis: session=192.168.3.206:1712 # 用户获取剑鱼程序用户session
|
|
|
|
|
|
# mysql配置
|
|
# mysql配置
|
|
mysql:
|
|
mysql:
|
|
@@ -49,7 +49,7 @@ databases:
|
|
system:
|
|
system:
|
|
# 监听服务注册etcd配置
|
|
# 监听服务注册etcd配置
|
|
etcdListen:
|
|
etcdListen:
|
|
- - 127.0.0.1:2379
|
|
|
|
|
|
+ - 192.168.3.240:2379
|
|
|
|
|
|
response:
|
|
response:
|
|
head-clear: # 响应头删除
|
|
head-clear: # 响应头删除
|
|
@@ -63,10 +63,10 @@ system:
|
|
debug: true # 是否打印调试信息。默认false
|
|
debug: true # 是否打印调试信息。默认false
|
|
stdout: true # 是否输出到控制台。默认false
|
|
stdout: true # 是否输出到控制台。默认false
|
|
systemLogPattern: system-{Ymd}.log # 日志文件格式。默认为"system-{Ymd}.log"
|
|
systemLogPattern: system-{Ymd}.log # 日志文件格式。默认为"system-{Ymd}.log"
|
|
- serverErrorStack: false # 当Server捕获到异常时是否记录堆栈信息到日志中。默认为true
|
|
|
|
|
|
+ serverErrorStack: true # 当Server捕获到异常时是否记录堆栈信息到日志中。默认为true
|
|
serverErrorLogEnabled: true # 是否记录异常日志信息到日志中。默认为true
|
|
serverErrorLogEnabled: true # 是否记录异常日志信息到日志中。默认为true
|
|
serverErrorLogPattern: error-{Ymd}.log # 异常错误日志文件格式。默认为"error-{Ymd}.log"
|
|
serverErrorLogPattern: error-{Ymd}.log # 异常错误日志文件格式。默认为"error-{Ymd}.log"
|
|
- serverAccessLogEnabled: false # 是否记录访问日志。默认为false
|
|
|
|
|
|
+ serverAccessLogEnabled: true # 是否记录访问日志。默认为false
|
|
serverAccessLogPattern: access-{Ymd}.log # 访问日志文件格式。默认为"access-{Ymd}.log"
|
|
serverAccessLogPattern: access-{Ymd}.log # 访问日志文件格式。默认为"access-{Ymd}.log"
|
|
serverRequestTimeout: 2000 # 接口请求超时通知,若注册表中无配置超时提醒使用此配置。默认500毫秒
|
|
serverRequestTimeout: 2000 # 接口请求超时通知,若注册表中无配置超时提醒使用此配置。默认500毫秒
|
|
|
|
|