gohttp/config.json

69 lines
1.9 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-18 14:11:06 +08:00
"port": 8000,
"name": "cloudops",
2023-12-10 01:08:39 +08:00
"paths":[
{
"path": "/",
2023-12-18 14:11:06 +08:00
"upstreams": ["http://192.168.12.174:9880"],
"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"]
},
{
"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
}