gohttp/config.json

58 lines
1.4 KiB
JSON
Raw Normal View History

2023-12-08 22:02:36 +08:00
{
2025-04-14 17:35:12 +08:00
"logging": {
2023-12-08 22:02:36 +08:00
"appenders": {
2025-04-14 17:35:12 +08:00
"out": {
2023-12-10 19:26:09 +08:00
"type": "file",
2025-04-14 17:35:12 +08:00
"options": {
2023-12-10 19:26:09 +08:00
"file": "gohttpd.log"
}
2023-12-15 21:45:04 +08:00
},
2025-04-14 17:35:12 +08:00
"stdout": {
2023-12-15 21:45:04 +08:00
"type": "console"
2023-12-08 22:02:36 +08:00
}
},
"categories": {
"default": {
2025-04-14 17:35:12 +08:00
"appenders": [
"out",
"stdout"
],
2023-12-08 22:02:36 +08:00
"level": "debug"
}
}
},
2025-04-14 17:35:12 +08:00
"admin": {
2023-12-13 09:22:05 +08:00
"name": "admin",
2025-05-30 18:42:53 +08:00
"server":"admin",
2025-04-14 17:35:12 +08:00
"port": 8088,
2023-12-13 09:22:05 +08:00
"username": "admin",
2023-12-13 10:59:47 +08:00
"password": "admin",
2025-04-14 17:35:12 +08:00
"directives": [
2023-12-15 21:45:04 +08:00
"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": "/",
2025-04-14 17:35:12 +08:00
"root": "./adminui",
"default": "index.html"
2023-12-13 10:59:47 +08:00
}
2025-04-14 17:35:12 +08:00
]
2023-12-10 01:08:39 +08:00
},
2025-04-14 17:35:12 +08:00
"servers": [
{
2025-05-30 18:42:53 +08:00
"name": "teststatic",
"server":"www.teststatic.com",
"port": 8088,
2025-04-14 17:35:12 +08:00
"paths": [
{
"path": "/",
2025-05-30 18:42:53 +08:00
"root": "./example",
"default": "index.html"
2025-04-14 17:35:12 +08:00
}
]
}
]
}