forked from coop-cloud/traefik
doc: log rotation
This commit is contained in:
+1
-3
@@ -226,7 +226,5 @@ WRITE_TIMEOUT=0s
|
||||
## Enable onion service support
|
||||
#ONION_ENABLED=1
|
||||
|
||||
## Keep access logs on a volume.
|
||||
# You'll need to setup rotation yourself and send the USR1 signal to
|
||||
# Traefik for reloading.
|
||||
## Access logs
|
||||
#COMPOSE_FILE="$COMPOSE_FILE:compose.access-log.yml"
|
||||
|
||||
@@ -77,3 +77,19 @@ protection your apps.**
|
||||
Uncomment the line in the config setting `ONION_ENABLED=1`. This will create a new entrypoint on port 9052 which can be used to bypass forced SSL. For more details, see the [onion recipe](https://recipes.coopcloud.tech/onion).
|
||||
|
||||
[`abra`]: https://git.autonomic.zone/autonomic-cooperative/abra
|
||||
|
||||
## Access logs
|
||||
|
||||
To keep access logs on a volume, uncomment the "Access logs" section.
|
||||
|
||||
You'll need to setup rotation yourself and send the USR1 signal to
|
||||
Traefik for reloading. For instance, with `logrotate:
|
||||
|
||||
```
|
||||
# /etc/logrotate.d/traefik.conf
|
||||
/var/lib/docker/volumes/traefik_SERVICE_NAME_access-logs/_data/access_log.jsonl {
|
||||
postrotate
|
||||
pkill -USR1 traefik
|
||||
endscript
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user