Configure borg backup for gitea
This commit is contained in:
parent
e21bba4363
commit
69f780a9f2
|
@ -1 +1 @@
|
|||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIH+ZQk80BU/OdQfV990yrkFwvsLVbVZ2Itof/qwxjTn7
|
||||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIG4C5OgZpxoF42L5rPqwejs+Q1ViN9TM9o/fEbpnPFtA
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
../../common/services/tailscale.nix
|
||||
../../common/users.nix
|
||||
./services/acme.nix
|
||||
./services/borg.nix
|
||||
./services/coturn.nix
|
||||
./services/nginx.nix
|
||||
./services/nitter.nix
|
||||
|
|
BIN
config/hosts/wind/data/secrets/borg_pass
Normal file
BIN
config/hosts/wind/data/secrets/borg_pass
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
16
config/hosts/wind/services/borg.nix
Normal file
16
config/hosts/wind/services/borg.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{ config, ... }:
|
||||
|
||||
{
|
||||
services.borgbackup.jobs = {
|
||||
gitea = {
|
||||
paths = "/var/lib/gitea";
|
||||
repo = "ssh://borg@despondos.nao.sh//mnt/slab/backup/wind/gitea";
|
||||
encryption.mode = "repokey";
|
||||
encryption.passCommand = "cat ${config.secrets.files.borg_pass_gitea.file}";
|
||||
environment.BORG_RSH = "ssh -i ${config.secrets.files.ssh_key_gitea.file}";
|
||||
compression = "auto,zstd";
|
||||
startAt = "*-*-* 02:15:00";
|
||||
user = "gitea";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -3,9 +3,6 @@
|
|||
{
|
||||
services.gitea = {
|
||||
enable = true;
|
||||
domain = "git.graven.dev";
|
||||
rootUrl = "https://git.graven.dev";
|
||||
enableUnixSocket = true;
|
||||
appName = "Graven Gitea";
|
||||
settings = { "ui" = { "DEFAULT_THEME" = "arc-green"; }; };
|
||||
database = {
|
||||
|
@ -13,5 +10,8 @@
|
|||
};
|
||||
settings.service.DISABLE_REGISTRATION = true;
|
||||
settings.session.COOKIE_SECURE = true;
|
||||
settings.server.DOMAIN = "git.graven.dev";
|
||||
settings.server.ROOT_URL = "https://git.graven.dev";
|
||||
settings.server.PROTOCOL = "http+unix";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue