mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-22 00:21:34 +01:00
Fix crowdsec's acquisition of caddy logs
This commit is contained in:
parent
e7cdd49bcf
commit
a1481db722
2 changed files with 10 additions and 2 deletions
|
|
@ -54,6 +54,7 @@ in
|
|||
virtualHosts = lib.mapAttrs' (
|
||||
_: value:
|
||||
lib.nameValuePair value.domain {
|
||||
logFormat = "output file ${config.services.caddy.logDir}/access-${value.domain}.log { mode 640 }";
|
||||
extraConfig = lib.concatStrings [
|
||||
(lib.optionalString (isTailscaleDomain value.domain) ''
|
||||
bind tailscale/${getSubdomain value.domain}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue