add Refresh
This commit is contained in:
@@ -8,24 +8,7 @@ plugin_configs:
|
||||
local f = assert(loadfile("/usr/local/apisix/auth.lua"))
|
||||
local mod = f()
|
||||
return mod.access
|
||||
|
||||
routes:
|
||||
- id: bff-no-auth
|
||||
name: bff-no-auth
|
||||
priority: 100
|
||||
uris:
|
||||
- /api/v3/login
|
||||
- /admin/v3/login
|
||||
methods:
|
||||
- GET
|
||||
- POST
|
||||
- PUT
|
||||
- OPTIONS
|
||||
upstream:
|
||||
type: roundrobin
|
||||
nodes:
|
||||
"bff:10000": 1
|
||||
|
||||
- id: bff
|
||||
name: bff
|
||||
priority: 10
|
||||
@@ -34,10 +17,16 @@ routes:
|
||||
- /api/*
|
||||
methods:
|
||||
- GET
|
||||
- PUT
|
||||
- POST
|
||||
- PUT
|
||||
- OPTIONS
|
||||
plugin_config_id: 1
|
||||
plugins:
|
||||
cors:
|
||||
allow_origins: "*"
|
||||
allow_methods: "GET,POST,PUT,OPTIONS"
|
||||
allow_headers: "Authorization,Authorization-Type,Authorization-Auth,Refresh,X-Refresh,X-Service-Code"
|
||||
max_age: 86400
|
||||
upstream:
|
||||
type: roundrobin
|
||||
nodes:
|
||||
|
||||
Reference in New Issue
Block a user