1 Star 0 Fork 46

coke / fire_control_config_example

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
gate-demo.yml 1.21 KB
一键复制 编辑 Web IDE 原始数据 按行查看 历史
zhangl 提交于 2020-09-22 18:39 . 配置文件名称调整
spring:
application:
name: turing-gate
thymeleaf:
mode: LEGACYHTML5
cache: false
server:
port: 8765 #启动端口
gate:
# 开发不进行权限校验的路径
ignore:
startWith: /static,/auth/oauth/,/admin/v2/api-docs,/dict/v2/api-docs,/auth/v2/api-docs,/dict/dictValue/type/comm_sex
auth:
serviceId: turing-auth
user:
token-header: Authorization
limit-expire: 1440 #1天
client:
token-header: client-token
id: turing-gate #不填则默认读取spring.application.name
secret: 123456
# 配置swagger
swagger:
enabled: true
base-package: cn.turing.firecontrol.gate
title: turing-gate
version: 1.0.0.SNAPSHOT
description: 网关服务
contact:
name: gate
zuul:
ignored-services: "*"
sensitive-headers:
prefix: /api #为zuul设置一个公共的前缀
ratelimit: # 网关限流
key-prefix: gate_rate
enabled: true
repository: REDIS #REDIS, JPA, IN_MEMORY
behind-proxy: true
default-policy: #optional - will apply unless specific policy exists
limit: 5000
refresh-interval: 60 #default value (in seconds)
type: #optional
- user
- origin
- url
# FormBodyWrapperFilter:
# pre:
# disable: false
1
https://gitee.com/colala/fire_control_config_example.git
git@gitee.com:colala/fire_control_config_example.git
colala
fire_control_config_example
fire_control_config_example
master

搜索帮助

14c37bed 8189591 565d56ea 8189591