fix and add add config for cloudops
This commit is contained in:
parent
d180d65524
commit
4ce1a59d14
33
config.json
33
config.json
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"logging" :{
|
"logging" :{
|
||||||
"appenders": {
|
"appenders": {
|
||||||
"out" :{
|
"out" :{
|
||||||
"type": "file",
|
"type": "file",
|
||||||
|
@ -37,21 +37,32 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"servers":[{
|
"servers":[{
|
||||||
"port" : 8080,
|
"port": 8000,
|
||||||
"name":"demo",
|
"name": "cloudops",
|
||||||
"paths":[
|
"paths":[
|
||||||
{
|
{
|
||||||
"path": "/",
|
"path": "/",
|
||||||
"root": "./public/",
|
"upstreams": ["http://192.168.12.174:9880"],
|
||||||
"default": "index.html"
|
"directives":["HostSchemas $target"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "/ws",
|
"path" : "/ssologin",
|
||||||
"upstreams":["http://localhost:3000"],
|
"upstreams": ["http://192.168.12.174:9880"],
|
||||||
"pathrewrite": {
|
"directives":["HostSchemas $target"]
|
||||||
"replace": "/ws",
|
},
|
||||||
"with": "/"
|
{
|
||||||
}
|
"path" : "/themes",
|
||||||
|
"upstreams": ["http://192.168.12.174:9880"],
|
||||||
|
"directives":["HostSchemas $target"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path" : "/thing",
|
||||||
|
"upstreams": ["http://192.168.12.174:9880"],
|
||||||
|
"directives":[
|
||||||
|
"HostSchemas $target",
|
||||||
|
"HeaderOrigin",
|
||||||
|
"RemoveCookie token"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}]
|
}]
|
||||||
|
|
|
@ -13,7 +13,7 @@ type HttpPath struct {
|
||||||
Root string `json:"root"`
|
Root string `json:"root"`
|
||||||
Default string `json:"default"`
|
Default string `json:"default"`
|
||||||
Upstreams []string `json:"upstreams"`
|
Upstreams []string `json:"upstreams"`
|
||||||
Directives string `json:"directives"`
|
Directives []string `json:"directives"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type HeaderValueConst string
|
type HeaderValueConst string
|
||||||
|
|
Loading…
Reference in New Issue