added forgejo to restic backups.
This commit is contained in:
parent
3a8026d110
commit
ac463949c7
4 changed files with 23 additions and 1 deletions
hosts
|
@ -14,6 +14,7 @@ inputs.nixpkgs.lib.nixosSystem {
|
||||||
./disk-config.nix
|
./disk-config.nix
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./restic.nix
|
./restic.nix
|
||||||
|
./nginx.nix
|
||||||
../../configs/nixos/common.nix
|
../../configs/nixos/common.nix
|
||||||
../../configs/nixos/tailscale.nix
|
../../configs/nixos/tailscale.nix
|
||||||
../../configs/nixos/sshd.nix
|
../../configs/nixos/sshd.nix
|
||||||
|
|
13
hosts/cirrostratus/nginx.nix
Normal file
13
hosts/cirrostratus/nginx.nix
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
{
|
||||||
|
inputs,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
imports = [
|
||||||
|
../../configs/nixos/nginx.nix
|
||||||
|
];
|
||||||
|
#Restic submits some huge requests sometimes.
|
||||||
|
services.nginx.clientMaxBodySize = "100m";
|
||||||
|
}
|
|
@ -8,7 +8,6 @@
|
||||||
imports = [
|
imports = [
|
||||||
../../configs/nixos/nginx.nix
|
../../configs/nixos/nginx.nix
|
||||||
];
|
];
|
||||||
services.nginx.clientMaxBodySize = "100m";
|
|
||||||
services.nginx.virtualHosts = {
|
services.nginx.virtualHosts = {
|
||||||
"gabevenberg.com" = {
|
"gabevenberg.com" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
|
|
|
@ -25,8 +25,17 @@
|
||||||
repositoryFile = config.sops.secrets.restic-url.path;
|
repositoryFile = config.sops.secrets.restic-url.path;
|
||||||
passwordFile = config.sops.secrets.restic-password.path;
|
passwordFile = config.sops.secrets.restic-password.path;
|
||||||
initialize = true;
|
initialize = true;
|
||||||
|
backupPrepareCommand = ''
|
||||||
|
systemctl stop forgejo.service
|
||||||
|
'';
|
||||||
|
backupCleanupCommand = ''
|
||||||
|
systemctl start forgejo.service
|
||||||
|
'';
|
||||||
paths = [
|
paths = [
|
||||||
"/var/lib/radicale"
|
"/var/lib/radicale"
|
||||||
|
"/var/lib/forgejo/custom"
|
||||||
|
"/var/lib/forgejo/data"
|
||||||
|
"/var/lib/forgejo/repositories"
|
||||||
];
|
];
|
||||||
timerConfig = {
|
timerConfig = {
|
||||||
OnCalendar = "daily";
|
OnCalendar = "daily";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue