gohttp/config.json

58 lines
1.4 KiB
JSON

{
"logging": {
"appenders": {
"out": {
"type": "file",
"options": {
"file": "gohttpd.log"
}
},
"stdout": {
"type": "console"
}
},
"categories": {
"default": {
"appenders": [
"out",
"stdout"
],
"level": "debug"
}
}
},
"admin": {
"name": "admin",
"server":"admin",
"port": 8088,
"username": "admin",
"password": "admin",
"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"
],
"paths": [
{
"path": "/",
"root": "./adminui",
"default": "index.html"
}
]
},
"servers": [
{
"name": "teststatic",
"server":"www.teststatic.com",
"port": 8088,
"paths": [
{
"path": "/",
"root": "./example",
"default": "index.html"
}
]
}
]
}