vnm
This commit is contained in:
parent
6d0c77f753
commit
56beeb53c2
1 changed files with 29 additions and 0 deletions
|
|
@ -1,3 +1,32 @@
|
||||||
|
# ─────────────────────────────────────────────────────────────────────────────
|
||||||
|
# GLOBAL BLOCK — add this at the very top before any snippets
|
||||||
|
# ─────────────────────────────────────────────────────────────────────────────
|
||||||
|
|
||||||
|
{
|
||||||
|
crowdsec {
|
||||||
|
api_url http://crowdsec:8080
|
||||||
|
api_key {$CROWDSEC_API_KEY}
|
||||||
|
}
|
||||||
|
log {
|
||||||
|
output file /var/log/caddy/access.log {
|
||||||
|
roll_size 50mb
|
||||||
|
roll_keep 5
|
||||||
|
}
|
||||||
|
format json
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# ─────────────────────────────────────────────────────────────────────────────
|
||||||
|
# CROWDSEC SNIPPET — add alongside existing auth snippets
|
||||||
|
# ─────────────────────────────────────────────────────────────────────────────
|
||||||
|
|
||||||
|
(crowdsec) {
|
||||||
|
route {
|
||||||
|
crowdsec
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
(authentik) {
|
(authentik) {
|
||||||
route /outpost.goauthentik.io/* {
|
route /outpost.goauthentik.io/* {
|
||||||
reverse_proxy http://authentik:9000
|
reverse_proxy http://authentik:9000
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue