mirror of
https://github.com/aykhans/my-self-host-services.git
synced 2025-11-29 16:09:49 +00:00
update caddy config to save logs to file
This commit is contained in:
@@ -3,6 +3,11 @@
|
|||||||
metrics {
|
metrics {
|
||||||
per_host
|
per_host
|
||||||
}
|
}
|
||||||
|
log {
|
||||||
|
output file /var/log/caddy/access.log
|
||||||
|
format json
|
||||||
|
level DEBUG
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
:2019 {
|
:2019 {
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ services:
|
|||||||
- ./ssl:/etc/ssl/custom/
|
- ./ssl:/etc/ssl/custom/
|
||||||
- ./data/data:/data
|
- ./data/data:/data
|
||||||
- ./data/config:/config
|
- ./data/config:/config
|
||||||
|
- ./data/log:/var/log/caddy
|
||||||
- ../private_volume:/private_volume
|
- ../private_volume:/private_volume
|
||||||
env_file:
|
env_file:
|
||||||
- ./.env
|
- ./.env
|
||||||
|
|||||||
Reference in New Issue
Block a user