gohttp/config.json

40 lines
905 B
JSON
Raw Normal View History

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" : {
"port" : 8088
2023-12-10 01:08:39 +08:00
},
"servers":[{
"port" : 8080,
"servername":"test",
"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
}