gohttp/config.json

225 lines
6.8 KiB
JSON
Raw Normal View History

2023-12-08 22:02:36 +08:00
{
2025-04-14 17:35:12 +08:00
"logging": {
2023-12-08 22:02:36 +08:00
"appenders": {
2025-04-14 17:35:12 +08:00
"out": {
2023-12-10 19:26:09 +08:00
"type": "file",
2025-04-14 17:35:12 +08:00
"options": {
2023-12-10 19:26:09 +08:00
"file": "gohttpd.log"
}
2023-12-15 21:45:04 +08:00
},
2025-04-14 17:35:12 +08:00
"stdout": {
2023-12-15 21:45:04 +08:00
"type": "console"
2023-12-08 22:02:36 +08:00
}
},
"categories": {
"default": {
2025-04-14 17:35:12 +08:00
"appenders": [
"out",
"stdout"
],
2023-12-08 22:02:36 +08:00
"level": "debug"
}
}
},
2025-04-14 17:35:12 +08:00
"admin": {
2023-12-13 09:22:05 +08:00
"name": "admin",
2025-04-14 17:35:12 +08:00
"port": 8088,
2023-12-13 09:22:05 +08:00
"username": "admin",
2023-12-13 10:59:47 +08:00
"password": "admin",
2025-04-14 17:35:12 +08:00
"directives": [
2023-12-15 21:45:04 +08:00
"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": "/",
2025-04-14 17:35:12 +08:00
"root": "./adminui",
"default": "index.html"
2023-12-13 10:59:47 +08:00
}
2025-04-14 17:35:12 +08:00
]
2023-12-10 01:08:39 +08:00
},
2025-04-14 17:35:12 +08:00
"servers": [
2025-04-22 10:38:33 +08:00
2025-04-14 17:35:12 +08:00
{
"port": 3000,
"name": "cloudops",
2025-04-22 10:38:33 +08:00
2025-04-14 17:35:12 +08:00
"paths": [
2025-04-22 10:38:33 +08:00
{
"path": "/static",
"root": "/home/kingecg/work/angular13/cloudops/static",
"default": "index.html"
},
2025-04-14 17:35:12 +08:00
{
"path": "/",
"upstreams": [
"http://localhost:4200"
],
"directives": [
"HostSchemas $target"
]
},
{
"path": "/ssologin",
"upstreams": [
"http://localhost:4200"
],
"directives": [
"HostSchemas $target"
]
},
{
"path": "/themes",
"upstreams": [
"http://192.168.12.157:9880"
],
"directives": [
"HostSchemas $target"
]
},
{
"path": "/security",
"upstreams": [
"http://192.168.12.157:9880"
],
"directives": [
"HostSchemas $target"
]
},
{
"path": "/v1/relational/assets",
"upstreams": [
"http://192.168.12.157:9880"
],
"directives": [
"HostSchemas $target"
]
},
{
"path": "/platform/version",
"upstreams": [
"http://192.168.12.157:9880"
],
"directives": [
"HostSchemas $target"
]
},
{
"path": "/v1/patrolrecords",
"upstreams": [
"http://192.168.12.157:9880"
],
"directives": [
"HostSchemas $target"
]
},
{
"path": "/v1/standingbook",
"upstreams": [
"http://192.168.12.157:9880"
],
"directives": [
"HostSchemas $target"
]
},
{
"path": "/v1/resource",
"upstreams": [
"http://192.168.12.157:9880"
],
"directives": [
"HostSchemas $target"
]
},
{
"path": "/v1/config",
"upstreams": [
"http://192.168.12.157:9880"
],
"directives": [
"HostSchemas $target"
]
},
{
"path": "/v1/workflow",
"upstreams": [
"http://192.168.12.157:9880"
],
"directives": [
"HostSchemas $target"
]
},
{
"path": "/token/check",
"upstreams": [
"http://192.168.12.157:9880"
],
"directives": [
"HostSchemas $target"
]
},
{
"path": "/v1/messages",
"upstreams": [
"http://192.168.12.157:9880"
],
"directives": [
"HostSchemas $target"
]
},
{
"path": "/cloudops-state/",
"upstreams": [
"http://192.168.12.157:9880"
],
"directives": [
"HostSchemas $target"
]
},
{
"path": "/socket.io/",
"upstreams": [
"http://192.168.12.157:9880"
],
"directives": [
"HostSchemas $target"
]
},
{
"path": "/v1/stream",
"upstreams": [
"http://192.168.12.157:9880"
],
"directives": [
"HostSchemas $target"
]
},
{
"path": "/thing",
"upstreams": [
"http://192.168.12.204:1662"
],
"directives": [
"HostSchemas $target",
"HeaderOrigin",
"RemoveCookie token"
]
},
{
"path":"/ib",
"upstreams": [
"http://localhost:8080"
],
"directives": [
"HostSchemas $target",
"HeaderOrigin",
"RemoveCookie token"
]
}
]
}
]
}