docs/deploy/caddy/caddy.json

78 lines
2 KiB
JSON
Raw Normal View History

2022-12-30 16:03:51 +00:00
{
"apps": {
"http": {
"servers": {
"static": {
"listen": [
":3000"
],
"metrics": {},
"routes": [
{
"match": [
{
"path": [
2022-12-30 19:16:49 +00:00
"/inetmock*"
2022-12-30 16:03:51 +00:00
]
}
],
"handle": [
{
2022-12-30 19:16:49 +00:00
"handler": "gopkg",
"path": "/inetmock",
"vcs": "git",
"url": "https://code.icb4dc0.de/inetmock/inetmock"
2022-12-30 16:03:51 +00:00
}
]
},
{
"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"
}
]
}
]
}
}
}
}
}