50 lines
1.1 KiB
JSON
50 lines
1.1 KiB
JSON
{
|
|
"logging" :{
|
|
"appenders": {
|
|
"out" :{
|
|
"type": "file",
|
|
"options":{
|
|
"file": "gohttpd.log"
|
|
}
|
|
}
|
|
},
|
|
"categories": {
|
|
"default": {
|
|
"appenders": [ "out" ],
|
|
"level": "debug"
|
|
}
|
|
}
|
|
},
|
|
"admin" : {
|
|
"name": "admin",
|
|
"port" : 8088,
|
|
"username": "admin",
|
|
"password": "admin",
|
|
"paths": [
|
|
{
|
|
"path": "/",
|
|
"root": "./adminui",
|
|
"default": "index.html"
|
|
}
|
|
]
|
|
},
|
|
"servers":[{
|
|
"port" : 8080,
|
|
"name":"demo",
|
|
"paths":[
|
|
{
|
|
"path": "/",
|
|
"root": "./public/",
|
|
"default": "index.html"
|
|
},
|
|
{
|
|
"path": "/ws",
|
|
"upstreams":["http://localhost:3000"],
|
|
"pathrewrite": {
|
|
"replace": "/ws",
|
|
"with": "/"
|
|
}
|
|
}
|
|
]
|
|
}]
|
|
} |