Add logrotate to the gitlab instance
This commit is contained in:
@@ -73,6 +73,14 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
|
# Fetch the SSL certificates for nginx to use
|
||||||
|
cron = {
|
||||||
|
enable = true;
|
||||||
|
systemCronJobs = [
|
||||||
|
"0 0 1 */2 * cd /etc/certs && tailscale cert gitlab.shire-zebra.ts.net && chown nginx * && systemctl reload nginx"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
gitlab = {
|
gitlab = {
|
||||||
enable = true;
|
enable = true;
|
||||||
backup = {
|
backup = {
|
||||||
@@ -177,12 +185,17 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Fetch the SSL certificates for nginx to use
|
openssh.enable = true;
|
||||||
cron = {
|
|
||||||
|
logrotate = {
|
||||||
enable = true;
|
enable = true;
|
||||||
systemCronJobs = [
|
settings = {
|
||||||
"0 0 1 */2 * cd /etc/certs && tailscale cert gitlab.shire-zebra.ts.net && chown nginx * && systemctl reload nginx"
|
"/var/lib/postgresql/*/log/*.log" = {
|
||||||
];
|
enable = true;
|
||||||
|
compress = true;
|
||||||
|
compresscmd = "${pkgs.xz}/bin/xz";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
postgresql = {
|
postgresql = {
|
||||||
@@ -207,7 +220,6 @@ in
|
|||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
resolved.enable = true;
|
resolved.enable = true;
|
||||||
openssh.enable = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Do not start nginx until we have tailscaled up and running, so it can bind
|
# Do not start nginx until we have tailscaled up and running, so it can bind
|
||||||
|
|||||||
Reference in New Issue
Block a user