-
Hello, i already tried the caddy adapt command but it didn't work for me. The web server launch with a default configuration Regards, BBA |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hey @Barnoux sorry for the late reply. The answer is yes, Caddyfile is just an abstraction of the Caddy json format. I'm not aware of the syntax though, I will take a look and add it to the documentation. |
Beta Was this translation helpful? Give feedback.
-
It is possible to use coraza by declaring a handler with name "waf". {
"admin": {
"disabled": false,
"listen": "localhost:2019",
"enforce_origin": false,
"config": {
"persist": true
}
},
"logging": {},
"storage": {
"module": "file_system",
"root": "/var/lib/caddy"
},
"apps": {
"http": {
"servers": {
"qwer": {
"listen": [
":1234"
],
"routes": [
{
"group": "",
"match": [
{
"path": [
"/"
]
}
],
"handle": [
{
"handler": "waf",
"directives": ""
},
{
"handler": "reverse_proxy"
}
],
"terminal": false
},
{
"group": "",
"match": [
{
"path": [
"/test"
]
}
],
"handle": [
{
"handler": "waf",
"directives": ""
},
{
"handler": "reverse_proxy"
}
],
"terminal": false
}
],
"errors": {}
}
}
}
}
} |
Beta Was this translation helpful? Give feedback.
It is possible to use coraza by declaring a handler with name "waf".