gohttp/config.json

137 lines
4.3 KiB
JSON
Raw 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-20 17:49:02 +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",
"upstreams": ["http://192.168.12.174:9880"],
"directives":["HostSchemas $target"]
},
{
"path" : "/themes",
"upstreams": ["http://192.168.12.174:9880"],
"directives":["HostSchemas $target"]
},
2023-12-20 17:49:02 +08:00
{
"path" : "/security/login",
"upstreams": ["http://192.168.12.174:9880"],
"directives":["HostSchemas $target"]
},
{
"path" : "/security/logout",
"upstreams": ["http://192.168.12.174:9880"],
"directives":["HostSchemas $target"]
},
{
"path" : "/v1/relational/assets",
"upstreams": ["http://192.168.12.174:9880"],
"directives":["HostSchemas $target"]
},
{
"path" : "/platform/version",
"upstreams": ["http://192.168.12.174:9880"],
"directives":["HostSchemas $target"]
},
{
"path" : "/v1/patrolrecords",
"upstreams": ["http://192.168.12.174:9880"],
"directives":["HostSchemas $target"]
},
{
"path" : "/v1/standingbook",
"upstreams": ["http://192.168.12.174:9880"],
"directives":["HostSchemas $target"]
},
{
"path" : "/v1/resource",
"upstreams": ["http://192.168.12.174:9880"],
"directives":["HostSchemas $target"]
},
{
"path" : "/v1/config",
"upstreams": ["http://192.168.12.174:9880"],
"directives":["HostSchemas $target"]
},
{
"path" : "/v1/workflow",
"upstreams": ["http://192.168.12.174:9880"],
"directives":["HostSchemas $target"]
},
{
"path":"/token/check",
"upstreams": ["http://192.168.12.174:9880"],
"directives":["HostSchemas $target"]
},
{
"path" : "/v1/messages",
"upstreams": ["http://192.168.12.174:9880"],
"directives":["HostSchemas $target"]
},
{
"path" : "/cloudops-state/",
"upstreams": ["http://192.168.12.174:9880"],
"directives":["HostSchemas $target"]
},
{
"path":"/socket.io/",
"upstreams": ["http://192.168.12.174:9880"],
"directives":["HostSchemas $target"]
},
2023-12-18 14:11:06 +08:00
{
"path" : "/thing",
"upstreams": ["http://192.168.12.174:9880"],
"directives":[
"HostSchemas $target",
"HeaderOrigin",
"RemoveCookie token"
]
2023-12-10 01:08:39 +08:00
}
]
}]
2023-12-08 22:02:36 +08:00
}