78 lines
No EOL
2 KiB
JSON
78 lines
No EOL
2 KiB
JSON
{
|
|
"apps": {
|
|
"http": {
|
|
"servers": {
|
|
"static": {
|
|
"listen": [
|
|
":3000"
|
|
],
|
|
"metrics": {},
|
|
"routes": [
|
|
{
|
|
"match": [
|
|
{
|
|
"path": [
|
|
"/inetmock*"
|
|
]
|
|
}
|
|
],
|
|
"handle": [
|
|
{
|
|
"handler": "gopkg",
|
|
"path": "/inetmock",
|
|
"vcs": "git",
|
|
"url": "https://code.icb4dc0.de/inetmock/inetmock"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"match": [
|
|
{
|
|
"path": [
|
|
"/"
|
|
]
|
|
}
|
|
],
|
|
"handle": [
|
|
{
|
|
"handler": "rewrite",
|
|
"path_regexp": [
|
|
{
|
|
"find": ".*",
|
|
"replace": "/docs/"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"handle": [
|
|
{
|
|
"handler": "file_server",
|
|
"root": "/usr/share/caddy",
|
|
"index_names": [
|
|
"index.html"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"metrics": {
|
|
"listen": [
|
|
":9100"
|
|
],
|
|
"routes": [
|
|
{
|
|
"handle": [
|
|
{
|
|
"handler": "metrics"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |