1 Star 0 Fork 46

杨远林 / fire_control_config_example

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
gate-demo.yml 957 Bytes
一键复制 编辑 原始数据 按行查看 历史
杨远林 提交于 2021-02-03 17:50 . update gate-demo.yml.
spring:
application:
name: turing-gate
thymeleaf:
mode: LEGACYHTML5
cache: false
redis:
host: 192.168.29.137
port: 6379
password: root
timeout: 20000
server:
port: 8765 #启动端口
# 配置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
routes:
turing-auth: /auth/**
turing-admin: /admin/**
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/yangyuanlin/fire_control_config_example.git
git@gitee.com:yangyuanlin/fire_control_config_example.git
yangyuanlin
fire_control_config_example
fire_control_config_example
master

搜索帮助