enable caddy logfile

This commit is contained in:
Noah Masur 2023-03-12 13:24:25 +00:00
parent 86076f0844
commit e6dbed2e17

View File

@ -24,6 +24,16 @@
listen = [ ":443" ]; listen = [ ":443" ];
routes = config.caddy.routes; routes = config.caddy.routes;
errors.routes = config.caddy.blocks; errors.routes = config.caddy.blocks;
# logs = { }; # Uncomment to collect access logs
};
logging.logs.main = {
encoder = { format = "console"; };
writer = {
output = "file";
filename = "${config.services.caddy.logDir}/caddy.log";
roll = true;
};
level = "INFO";
}; };
}); });