Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
caddy.json claima test
{
"apps": {
"http": {
"servers": {
"srv0": {
"listen": [":8080"],
"routes": [
{
"handle": [
{
"handler": "subroute",
"routes": [
{
"handle": [
{
"handler": "vars",
"root": "./dist"
},
{
"handler": "subroute",
"routes": [
{
"handle": [
{
"encodings": {
"gzip": {}
},
"handler": "encode"
}
]
},
{
"handle": [
{
"handler": "rewrite",
"rehandle": true,
"uri": "{http.matchers.file.relative}{http.request.uri.query_string}"
}
],
"match": [
{
"file": {
"try_files": ["{http.request.uri.path}", "index.html"]
}
}
]
},
{
"handle": [
{
"handler": "file_server",
"hide": ["Caddyfile"]
}
]
}
]
}
]
}
]
}
]
}
]
}
}
},
"tls": {
"automation": {},
"session_tickets": {}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.