So I found out how to enable the log file with this addon.
I added to my caddyfile:
log /data/requests.log {
rotate_size 50 # Rotate after 50 MB
rotate_age 90 # Keep rotated files for 90 days
rotate_keep 20 # Keep at most 20 log files
rotate_compress # Compress rotated log files in gzip format
}
The data directory is located at:
/usr/share/hassio/addons/data/fe41fc28_caddy
I can only access it from the host. You could get there from a console in Portainer as well but I can’t find it in the homeassistant root folder (as it’s in the Caddy container)
The /data folder is one of 3 bind mounts in the container and it is the only one with rw access unfortunately.