You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default Caddy does not log any access logs and if you want to enable them globally then you can add the following:
{
log {
output stdout
format console
}
}
However, the way coolify handles the dynamic files means it not possible to define this as import /dynamic/*.caddy is always written to the Caddyfile and if you attempt to creates a log.caddy as a dynamic file Caddy will reject this configuration as it expects all global configuration to be at the top of the file.
Steps to Reproduce
Configure coolify to use Caddy proxy
Manually edit /data/coolify/proxy/caddy/dynamic/Caddyfile to include the snippet above the import statements
Restart the proxy and manual configuration is now reverted
options 2:
Configure coolify to use Caddy proxy
Create a log.caddy file in the interface with the snippet
Gets error that the configuration is invalid but closing the prompt still saves the file.
Example Repository URL
No response
Coolify Version
latest
Are you using Coolify Cloud?
No (self-hosted)
Operating System and Version (self-hosted)
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered:
A workaround for now is on each deployment where you want access logs you can add the following so the Caddy docker labels are generating the correct one per host:
services:
wordpress:
image: 'wordpress:latest'volumes:
- 'wordpress-files:/var/www/html'environment:
- SERVICE_FQDN_WORDPRESSlabels:
- 'caddy_0.log.output=stdout'## This label was manually added by mehealthcheck:
test:
- CMD
- curl
- '-f'
- 'http://127.0.0.1'interval: 2stimeout: 10sretries: 10
Error Message and Logs
By default Caddy does not log any access logs and if you want to enable them globally then you can add the following:
However, the way coolify handles the dynamic files means it not possible to define this as
import /dynamic/*.caddy
is always written to theCaddyfile
and if you attempt to creates alog.caddy
as a dynamic file Caddy will reject this configuration as it expects all global configuration to be at the top of the file.Steps to Reproduce
/data/coolify/proxy/caddy/dynamic/Caddyfile
to include the snippet above theimport
statementsoptions 2:
log.caddy
file in the interface with the snippetExample Repository URL
No response
Coolify Version
latest
Are you using Coolify Cloud?
No (self-hosted)
Operating System and Version (self-hosted)
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: