diff options
| author | seth <[email protected]> | 2023-02-08 08:05:16 +0000 |
|---|---|---|
| committer | seth <[email protected]> | 2023-02-08 08:10:42 +0000 |
| commit | f5273be239562ebcfe0b7d65817eb96aaff5b15b (patch) | |
| tree | 3551ebb39bf20d753ad91e50d965da9398b6ccd8 /caddy/Caddyfile | |
| parent | 21fa4856be8de330d2351159b680c630e5f0aa07 (diff) | |
add logging
Diffstat (limited to 'caddy/Caddyfile')
| -rw-r--r-- | caddy/Caddyfile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/caddy/Caddyfile b/caddy/Caddyfile index 4cee1a1..0f54d2b 100644 --- a/caddy/Caddyfile +++ b/caddy/Caddyfile @@ -22,6 +22,13 @@ rewrite @404 /404.html file_server } + log { + output file /var/log/caddy/{args.0}-access.log { + roll_keep 5 + roll_keep_for 720h + } + format console + } } (no_embeds) { @@ -40,7 +47,7 @@ www.{$DOMAIN:localhost} { {$DOMAIN:localhost} { root * {$CADDY_ROOT:/var/www} - import common_domain + import common_domain {$DOMAIN:localhost} file_server browse |
