gohttp/config.json

58 lines
1.5 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-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":[{
"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
}