You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FROM caddy:builder AS builder
RUN xcaddy build \
--with github.com/corazawaf/coraza-caddy/v2
FROM caddy:latest
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
Caddyfile
{
order coraza_waf first
https_port 443
admin off
acme_dns cloudflare MY_API_KEY
}
*.mydomain.com {
coraza_waf {
load_owasp_crs
directives `
Include etc/caddy/rules/@coraza.conf-recommended
Include /etc/caddy/rules/@crs-setup.conf.example
Include /etc/caddy/rules/@owasp_crs/*.conf
SecRuleEngine On
`
}
@sub host sub.mydomain.com
handle @hub {
## webport
reverse_proxy 127.0.0.1:8080
}
}
rule fules
Just right in clamed /etc/caddy/rules
/etc/caddy/rules$ ls -l
-rw-r--r-- 1 admin admin 9511 Dec 23 22:29 @coraza.conf-recommended
-rw-r--r-- 1 admin admin 32548 Dec 23 22:29 @crs-setup.conf.example
drwxr-xr-x 2 admin admin 4096 Dec 23 22:29 @owasp_crs
The text was updated successfully, but these errors were encountered:
Pretty much the same issue like #58 , but happend on latest caddy(both bin and docker) with coraza-caddy/v2.
Build parameter
Dockerfile
Caddyfile
rule fules
Just right in clamed
/etc/caddy/rules
The text was updated successfully, but these errors were encountered: