gohttp/config.json

50 lines
1.1 KiB
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" : {
2023-12-13 09:22:05 +08:00
"name": "admin",
"port" : 8088,
"username": "admin",
2023-12-13 10:59:47 +08:00
"password": "admin",
"paths": [
{
"path": "/",
"root": "./adminui",
"default": "index.html"
}
]
2023-12-10 01:08:39 +08:00
},
"servers":[{
"port" : 8080,
2023-12-13 21:09:01 +08:00
"name":"demo",
2023-12-10 01:08:39 +08:00
"paths":[
{
"path": "/",
2023-12-13 21:09:01 +08:00
"root": "./public/",
2023-12-10 01:08:39 +08:00
"default": "index.html"
},
{
"path": "/ws",
"upstreams":["http://localhost:3000"],
"pathrewrite": {
"replace": "/ws",
"with": "/"
}
}
]
}]
2023-12-08 22:02:36 +08:00
}