From 29d714a84912f895237e2dffc9ffcd1ce8d24066 Mon Sep 17 00:00:00 2001 From: Eric Pfeiffer Date: Fri, 26 Aug 2016 13:26:22 -0500 Subject: [PATCH] caddy log to file. enable gzip compression. --- caddy/Caddyfile | 5 +++-- docker-compose.yml | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/caddy/Caddyfile b/caddy/Caddyfile index 5052db3..f3c5434 100644 --- a/caddy/Caddyfile +++ b/caddy/Caddyfile @@ -9,9 +9,10 @@ rewrite { ext / to /index.php?{query} } +gzip browse -log stdout -errors stderr +log /var/log/caddy/access.log +errors /var/log/caddy/error.log # Uncomment to enable TLS (HTTPS) # Change the first list to listen on port 443 when enabling TLS #tls self_signed diff --git a/docker-compose.yml b/docker-compose.yml index 8f8eb32..ecc4fde 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -206,6 +206,7 @@ services: - "2015:2015" volumes: - ./caddy/Caddyfile:/etc/Caddyfile + - ./logs/caddy:/var/log/caddy links: - php-fpm