gohttp/config.json

137 lines
4.3 KiB
JSON
Raw Permalink Normal View History

2023-12-08 22:02:36 +08:00
{
2023-12-18 14:11:06 +08:00
"logging" :{
2023-12-08 22:02:36 +08:00
"appenders": {
"out" :{
2023-12-10 19:26:09 +08:00
"type": "file",
"options":{
"file": "gohttpd.log"
}
2023-12-15 21:45:04 +08:00
},
"stdout":{
"type": "console"
2023-12-08 22:02:36 +08:00
}
},
"categories": {
"default": {
2023-12-15 21:45:04 +08:00
"appenders": [ "out" ,"stdout"],
2023-12-08 22:02:36 +08:00
"level": "debug"
}
}
},
"admin" : {
2023-12-13 09:22:05 +08:00
"name": "admin",
"port" : 8088,
"username": "admin",
2023-12-13 10:59:47 +08:00
"password": "admin",
2023-12-15 21:45:04 +08:00
"directives":[
"Set-Header Access-Control-Allow-Origin *",
"Set-Header Access-Control-Allow-Methods GET, POST, PUT, DELETE, OPTIONS",
"Set-Header Access-Control-Allow-Headers Content-Type, Authorization, Content-Length, X-Requested-With"
],
2023-12-13 10:59:47 +08:00
"paths": [
{
"path": "/",
"root": "./adminui",
"default": "index.html"
}
]
2023-12-10 01:08:39 +08:00
},
"servers":[{
2023-12-20 17:49:02 +08:00
"port": 3000,
2023-12-18 14:11:06 +08:00
"name": "cloudops",
2023-12-21 18:36:51 +08:00
"directives":[
"Gzip_Response"
],
2023-12-10 01:08:39 +08:00
"paths":[
{
"path": "/",
2023-12-27 17:22:18 +08:00
"upstreams": ["http://localhost:4200"],
2023-12-21 18:36:51 +08:00
"directives":["HostSchemas $target"]
2023-12-10 01:08:39 +08:00
},
{
2023-12-18 14:11:06 +08:00
"path" : "/ssologin",
2023-12-27 17:22:18 +08:00
"upstreams": ["http://192.168.12.157:9880"],
2023-12-18 14:11:06 +08:00
"directives":["HostSchemas $target"]
},
{
"path" : "/themes",
2023-12-27 17:22:18 +08:00
"upstreams": ["http://192.168.12.157:9880"],
2023-12-18 14:11:06 +08:00
"directives":["HostSchemas $target"]
},
2023-12-20 17:49:02 +08:00
{
"path" : "/security/login",
2023-12-27 17:22:18 +08:00
"upstreams": ["http://192.168.12.157:9880"],
2023-12-20 17:49:02 +08:00
"directives":["HostSchemas $target"]
},
{
"path" : "/security/logout",
2023-12-27 17:22:18 +08:00
"upstreams": ["http://192.168.12.157:9880"],
2023-12-20 17:49:02 +08:00
"directives":["HostSchemas $target"]
},
{
"path" : "/v1/relational/assets",
2023-12-27 17:22:18 +08:00
"upstreams": ["http://192.168.12.157:9880"],
2023-12-20 17:49:02 +08:00
"directives":["HostSchemas $target"]
},
{
"path" : "/platform/version",
2023-12-27 17:22:18 +08:00
"upstreams": ["http://192.168.12.157:9880"],
2023-12-20 17:49:02 +08:00
"directives":["HostSchemas $target"]
},
{
"path" : "/v1/patrolrecords",
2023-12-27 17:22:18 +08:00
"upstreams": ["http://192.168.12.157:9880"],
2023-12-20 17:49:02 +08:00
"directives":["HostSchemas $target"]
},
{
"path" : "/v1/standingbook",
2023-12-27 17:22:18 +08:00
"upstreams": ["http://192.168.12.157:9880"],
2023-12-20 17:49:02 +08:00
"directives":["HostSchemas $target"]
},
{
"path" : "/v1/resource",
2023-12-27 17:22:18 +08:00
"upstreams": ["http://192.168.12.157:9880"],
2023-12-20 17:49:02 +08:00
"directives":["HostSchemas $target"]
},
{
"path" : "/v1/config",
2023-12-27 17:22:18 +08:00
"upstreams": ["http://192.168.12.157:9880"],
2023-12-20 17:49:02 +08:00
"directives":["HostSchemas $target"]
},
{
"path" : "/v1/workflow",
2023-12-27 17:22:18 +08:00
"upstreams": ["http://192.168.12.157:9880"],
2023-12-20 17:49:02 +08:00
"directives":["HostSchemas $target"]
},
{
"path":"/token/check",
2023-12-27 17:22:18 +08:00
"upstreams": ["http://192.168.12.157:9880"],
2023-12-20 17:49:02 +08:00
"directives":["HostSchemas $target"]
},
{
"path" : "/v1/messages",
2023-12-27 17:22:18 +08:00
"upstreams": ["http://192.168.12.157:9880"],
2023-12-20 17:49:02 +08:00
"directives":["HostSchemas $target"]
},
{
"path" : "/cloudops-state/",
2023-12-27 17:22:18 +08:00
"upstreams": ["http://192.168.12.157:9880"],
2023-12-20 17:49:02 +08:00
"directives":["HostSchemas $target"]
},
{
"path":"/socket.io/",
2023-12-27 17:22:18 +08:00
"upstreams": ["http://192.168.12.157:9880"],
2023-12-20 17:49:02 +08:00
"directives":["HostSchemas $target"]
},
2023-12-18 14:11:06 +08:00
{
"path" : "/thing",
2023-12-27 17:22:18 +08:00
"upstreams": ["http://192.168.12.157:9880"],
2023-12-18 14:11:06 +08:00
"directives":[
"HostSchemas $target",
"HeaderOrigin",
"RemoveCookie token"
]
2023-12-10 01:08:39 +08:00
}
]
}]
2023-12-08 22:02:36 +08:00
}