log files

This commit is contained in:
Andreas Knuth 2024-05-14 14:56:39 -05:00
parent de6d00d371
commit 7a004de033
2 changed files with 11 additions and 1 deletions

View File

@ -32,11 +32,20 @@ dev.bizmatch.net {
try_files {path} {path}/ /index.html try_files {path} {path}/ /index.html
encode gzip encode gzip
handle /pictures/* { handle /pictures/* {
root * /home/aknuth/git/bizmatch-project/bizmatch-server root * /home/aknuth/git/bizmatch-project/bizmatch-server
file_server file_server
} }
log {
output file /var/log/caddy/access.log {
roll_size 10MB
roll_keep 5
roll_keep_for 48h
}
}
tls { tls {
dns cloudflare q1P7J3uqS96FGj_iiX2mI8y1ulTaIFrTp8tyTXhG dns cloudflare q1P7J3uqS96FGj_iiX2mI8y1ulTaIFrTp8tyTXhG
} }

View File

@ -17,6 +17,7 @@ services:
#- /home/aknuth/git/bizmatch/dist/bizmatch/browser:/srv #- /home/aknuth/git/bizmatch/dist/bizmatch/browser:/srv
- /home/aknuth/git/bizmatch-project/bizmatch/dist/bizmatch/browser:/srv - /home/aknuth/git/bizmatch-project/bizmatch/dist/bizmatch/browser:/srv
- /home/aknuth/git/bizmatch-project/bizmatch-server/pictures:/home/aknuth/git/bizmatch-project/bizmatch-server/pictures - /home/aknuth/git/bizmatch-project/bizmatch-server/pictures:/home/aknuth/git/bizmatch-project/bizmatch-server/pictures
- /home/aknuth/log/caddy:/var/log/caddy
environment: environment:
- CLOUDFLARE_API_TOKEN=q1P7J3uqS96FGj_iiX2mI8y1ulTaIFrTp8tyTXhG - CLOUDFLARE_API_TOKEN=q1P7J3uqS96FGj_iiX2mI8y1ulTaIFrTp8tyTXhG