Skip to content

Commit 29d714a

Browse files
committed
caddy log to file. enable gzip compression.
1 parent f9fd391 commit 29d714a

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

caddy/Caddyfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ rewrite {
99
ext /
1010
to /index.php?{query}
1111
}
12+
gzip
1213
browse
13-
log stdout
14-
errors stderr
14+
log /var/log/caddy/access.log
15+
errors /var/log/caddy/error.log
1516
# Uncomment to enable TLS (HTTPS)
1617
# Change the first list to listen on port 443 when enabling TLS
1718
#tls self_signed

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ services:
206206
- "2015:2015"
207207
volumes:
208208
- ./caddy/Caddyfile:/etc/Caddyfile
209+
- ./logs/caddy:/var/log/caddy
209210
links:
210211
- php-fpm
211212

0 commit comments

Comments
 (0)