fae: add debug comment for invoiceplane,
prepare backups
This commit is contained in:
parent
2afe36eacb
commit
a4484248c6
|
@ -35,6 +35,9 @@ in
|
||||||
IP_URL = "https://billing.faenix.eu";
|
IP_URL = "https://billing.faenix.eu";
|
||||||
DISABLE_SETUP = true;
|
DISABLE_SETUP = true;
|
||||||
SETUP_COMPLETED = true;
|
SETUP_COMPLETED = true;
|
||||||
|
# Useful for debugging, logs to
|
||||||
|
# /var/lib/invoiceplane/<domain>/logs/
|
||||||
|
#ENABLE_DEBUG=true;
|
||||||
};
|
};
|
||||||
|
|
||||||
poolConfig = {
|
poolConfig = {
|
||||||
|
@ -67,9 +70,9 @@ in
|
||||||
# repository = "rclone:cloud.pub.solar:/backups/InvoicePlane";
|
# repository = "rclone:cloud.pub.solar:/backups/InvoicePlane";
|
||||||
# backupPrepareCommand = ''
|
# backupPrepareCommand = ''
|
||||||
# PW=$(cat ${config.age.secrets."invoiceplane-db-password".path})
|
# PW=$(cat ${config.age.secrets."invoiceplane-db-password".path})
|
||||||
# ${pkgs.docker-client}/bin/docker exec -t invoiceplane-db mariadb-dump --all-databases --password=$PW --user=invoiceplane > "${backupDir}/postgres.sql"
|
# ${pkgs.mariadb-client}/bin/mariadb-dump --all-databases --password=$PW --user=invoiceplane > "${backupDir}/mariadb-dump.sql"
|
||||||
# '';
|
# '';
|
||||||
# rcloneConfigFile = config.age.secrets."rclone-pie.conf".path;
|
# rcloneConfigFile = config.age.secrets."rclone-fae.conf".path;
|
||||||
# };
|
# };
|
||||||
#};
|
#};
|
||||||
}
|
}
|
||||||
|
|
|
@ -68,20 +68,6 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
#services.caddy = {
|
|
||||||
# enable = true;
|
|
||||||
# globalConfig = ''
|
|
||||||
# local_certs
|
|
||||||
# '';
|
|
||||||
# virtualHosts = {
|
|
||||||
# "paperless.fritz.box" = {
|
|
||||||
# extraConfig = ''
|
|
||||||
# reverse_proxy :${builtins.toString config.services.paperless.port}
|
|
||||||
# '';
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
#};
|
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [
|
networking.firewall.allowedTCPPorts = [
|
||||||
80
|
80
|
||||||
443
|
443
|
||||||
|
@ -93,8 +79,8 @@ in
|
||||||
"d '${backupDir}' 0700 ${psCfg.user.name} users - -"
|
"d '${backupDir}' 0700 ${psCfg.user.name} users - -"
|
||||||
];
|
];
|
||||||
|
|
||||||
#age.secrets."rclone-pie.conf" = {
|
#age.secrets."rclone-fae.conf" = {
|
||||||
# file = "${flake.self}/secrets/rclone-pie.conf.age";
|
# file = "${flake.self}/secrets/rclone-fae.conf.age";
|
||||||
# path = "/root/.config/rclone/rclone.conf";
|
# path = "/root/.config/rclone/rclone.conf";
|
||||||
# mode = "400";
|
# mode = "400";
|
||||||
#};
|
#};
|
||||||
|
@ -112,7 +98,7 @@ in
|
||||||
# # See https://www.hosting.de/blog/verschluesselte-backups-mit-rclone-und-restic-in-nextcloud/
|
# # See https://www.hosting.de/blog/verschluesselte-backups-mit-rclone-und-restic-in-nextcloud/
|
||||||
# repository = "rclone:cloud.pub.solar:/backups/Paperless";
|
# repository = "rclone:cloud.pub.solar:/backups/Paperless";
|
||||||
# backupPrepareCommand = "${dataDir}/paperless-manage document_exporter ${backupDir} -c -p";
|
# backupPrepareCommand = "${dataDir}/paperless-manage document_exporter ${backupDir} -c -p";
|
||||||
# rcloneConfigFile = config.age.secrets."rclone-pie.conf".path;
|
# rcloneConfigFile = config.age.secrets."rclone-fae.conf".path;
|
||||||
# };
|
# };
|
||||||
#};
|
#};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue