2023-12-08 22:02:36 +08:00
|
|
|
{
|
|
|
|
"logging" :{
|
|
|
|
"appenders": {
|
|
|
|
"out" :{
|
2023-12-10 19:26:09 +08:00
|
|
|
"type": "file",
|
|
|
|
"options":{
|
|
|
|
"file": "gohttpd.log"
|
|
|
|
}
|
2023-12-08 22:02:36 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"categories": {
|
|
|
|
"default": {
|
|
|
|
"appenders": [ "out" ],
|
|
|
|
"level": "debug"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"admin" : {
|
2023-12-13 09:22:05 +08:00
|
|
|
"name": "admin",
|
|
|
|
"port" : 8088,
|
|
|
|
"username": "admin",
|
|
|
|
"password": "admin"
|
2023-12-10 01:08:39 +08:00
|
|
|
},
|
|
|
|
"servers":[{
|
|
|
|
"port" : 8080,
|
2023-12-13 09:22:05 +08:00
|
|
|
"name":"test",
|
2023-12-10 01:08:39 +08:00
|
|
|
"paths":[
|
|
|
|
{
|
|
|
|
"path": "/",
|
|
|
|
"root": "/home/kingecg/code/gohttp/public/",
|
|
|
|
"default": "index.html"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"path": "/ws",
|
|
|
|
"upstreams":["http://localhost:3000"],
|
|
|
|
"pathrewrite": {
|
|
|
|
"replace": "/ws",
|
|
|
|
"with": "/"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}]
|
2023-12-08 22:02:36 +08:00
|
|
|
}
|