caddy log rotation
This commit is contained in:
parent
cee3366daa
commit
e1c6dc068f
@ -219,7 +219,13 @@ let ssh_pubkeys = {
|
||||
virtualHosts."git.jakstys.lt".extraConfig = ''
|
||||
reverse_proxy 127.0.0.1:3000
|
||||
'';
|
||||
virtualHosts."beta.jakstys.lt".extraConfig = ''
|
||||
virtualHosts."beta.jakstys.lt" = {
|
||||
logFormat = ''
|
||||
output file ${config.services.caddy.logDir}/access-beta.jakstys.lt.log {
|
||||
roll_disabled
|
||||
}
|
||||
'';
|
||||
extraConfig = ''
|
||||
header /_/* Cache-Control "public, max-age=31536000, immutable"
|
||||
root * /var/www/jakstys.lt
|
||||
file_server {
|
||||
@ -246,6 +252,7 @@ let ssh_pubkeys = {
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
logrotate = {
|
||||
settings = {
|
||||
@ -259,7 +266,7 @@ let ssh_pubkeys = {
|
||||
compressext = ".zst";
|
||||
compressoptions = "--long -19";
|
||||
uncompresscmd = "${pkgs.zstd}/bin/unzstd";
|
||||
postrotate = "${pkgs.systemd}/bin/systemctl reload caddy";
|
||||
postrotate = "${pkgs.systemd}/bin/systemctl restart caddy";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user