summaryrefslogtreecommitdiff
path: root/caddy/Caddyfile
diff options
context:
space:
mode:
Diffstat (limited to 'caddy/Caddyfile')
-rw-r--r--caddy/Caddyfile9
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