Files
fizz-gateway-node/fizz-bootstrap/src/main/resources/application.yml

106 lines
3.7 KiB
YAML
Raw Normal View History

# if you do not use Apollo, ignore the follow config
################################################## Apollo config start ##################################################
apollo:
# if use Apollo set this flag to true
enabled: false #use Apollo? (default:false)
bootstrap:
# if use Apollo set this flag to true
enabled: false #use Apollo?
namespaces: application #please input the apollo bootstrap namespaces (default:application)
eagerLoad:
# if use Apollo set this flag to true
enabled: false #use Apollo?
################################################### Apollo config end ###################################################
2020-09-02 18:35:03 +08:00
# if you do not use Nacos, ignore the follow config
################################################## Nacos config start ###################################################
nacos:
config:
# if use Nacos config set this flag to true
enabled: false #use Nacos Config? (default:false)
# need replace
server-addr: localhost:8848 #please input the nacos config server-addr (default:localhost:8848)
auto-refresh: true
group: fizz-gateway #please input the nacos config group (default:fizz-gateway)
data-id: application #please input the nacos config data-id (default:application)
type: PROPERTIES #please input the nacos config type (default:PROPERTIES)
# need replace
namespace: null #please input the nacos config type (default:null)
discovery:
# if use Nacos discovery set this flag to true
enabled: false #use Nacos Discovery? (default:false)
# need replace
server-addr: localhost:8848 #please input the nacos discovery server-addr (default:localhost:8848)
auto-register: true
register:
group-name: fizz-gateway #please input the nacos discovery register group-name (default:fizz-gateway)
################################################### Nacos config end ####################################################
2020-09-02 18:35:03 +08:00
# if you do not use Eureka, ignore the follow config
################################################## Eureka config start ##################################################
eureka:
client:
# if use Eureka set this flag to true
enabled: false #use Eureka? (default:false)
serviceUrl:
# need replace
defaultZone: http://localhost:6600/eureka/ #please input the eureka client serviceUrl defaultZone (default:http://localhost:6600/eureka/)
instance:
prefer-ip-address: true
################################################### Eureka config end ###################################################
2020-09-02 18:35:03 +08:00
server:
port: 8600
spring:
profiles:
active: dev
application:
name: fizz-gateway
main:
allow-bean-definition-overriding: true
cloud:
loadbalancer:
ribbon:
enabled: false
2020-09-02 18:35:03 +08:00
aggregate:
redis:
# need replace
host: 6.6.6.6 #please input the redis host (default:localhost)
# need replace
port: 6379 #please input the redis port (default:6379)
# need replace
password: 123456 #please input the redis password (default:123456)
# need replace
2021-04-01 11:06:10 +08:00
database: 10 #please input the redis database (default:9)
proxy-webclient:
name: proxy
aggr-webclient:
name: aggr
fizz-web-client:
timeout: 20000
2021-03-30 11:52:12 +08:00
fizz-dubbo-client:
address: zookeeper://127.0.0.1:2181
log:
2021-03-30 11:52:12 +08:00
headers: COOKIE,FIZZ-APPID,FIZZ-SIGN,FIZZ-TS,FIZZ-RSV,HOST
stat:
# switch for push access stat data
open: true
send-log:
# switch for push log data
open: true
sched:
executors: 2
flowControl: true
flow-stat-sched:
cron: 2/10 * * * * ?
dest: redis
2021-03-30 11:52:12 +08:00
queue: fizz_resource_access_stat
gateway:
prefix: /proxy
aggr:
# set headers when calling the backend API
proxy_set_headers: host,X-Real-IP,X-Forwarded-Proto,X-Forwarded-For