migrate gitea and hedgedoc

This commit is contained in:
Ingolf Wagner 2024-04-12 23:09:40 +02:00
parent 2f5d2faaad
commit 1945c66862
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
5 changed files with 19 additions and 17 deletions

View file

@ -8,16 +8,18 @@
src = "root@orbi:/var/lib/nixos-containers/nextcloud"; src = "root@orbi:/var/lib/nixos-containers/nextcloud";
dst = "/mirror/nextcloud"; dst = "/mirror/nextcloud";
}; };
git = {
sshKeyPath = config.sops.secrets.rsync_private_key.path;
src = "root@orbi:/var/lib/forgejo/";
dst = "/mirror/git";
};
# todo
taskwarrior = { taskwarrior = {
sshKeyPath = config.sops.secrets.rsync_private_key.path; sshKeyPath = config.sops.secrets.rsync_private_key.path;
src = "root@robi:/var/lib/taskserver/"; src = "root@robi:/var/lib/taskserver/";
dst = "/mirror/taskwarrior"; dst = "/mirror/taskwarrior";
}; };
gitea = { # todo
sshKeyPath = config.sops.secrets.rsync_private_key.path;
src = "root@robi:/var/lib/gitea/";
dst = "/mirror/gitea";
};
bitwarden = { bitwarden = {
sshKeyPath = config.sops.secrets.rsync_private_key.path; sshKeyPath = config.sops.secrets.rsync_private_key.path;
src = "root@robi:/var/lib/bitwarden_rs/"; src = "root@robi:/var/lib/bitwarden_rs/";
@ -28,7 +30,6 @@
src = "root@orbi:/var/lib/nixos-containers/matrix-terranix"; src = "root@orbi:/var/lib/nixos-containers/matrix-terranix";
dst = "/mirror/matrix-terranix"; dst = "/mirror/matrix-terranix";
}; };
radarr = { radarr = {
sshKeyPath = config.sops.secrets.rsync_private_key.path; sshKeyPath = config.sops.secrets.rsync_private_key.path;
src = "root@orbi:/media/arr/radarr"; src = "root@orbi:/media/arr/radarr";
@ -41,8 +42,6 @@
dst = "/media/arr/sonarr"; dst = "/media/arr/sonarr";
delete = false; delete = false;
}; };
}; };

View file

@ -9,10 +9,12 @@
../../modules ../../modules
# services ./service-hedgedoc.nix
./service-forgejo.nix
#./borg.nix #./borg.nix
#./codimd.nix #./codimd.nix
#./gitea.nix #./gitea.nix
#./packages.nix
#./taskserver.nix #./taskserver.nix
#./vaultwarden.nix #./vaultwarden.nix
@ -30,14 +32,15 @@
./media-arr.nix ./media-arr.nix
./media-nextcloud.nix ./media-nextcloud.nix
#./sync-opentracker.nix
#./sync-torrent.nix
#./social-jitsi.nix #./social-jitsi.nix
./social-matrix-terranix.nix ./social-matrix-terranix.nix
#./social-matrix-ingolf-wagner.nix #./social-matrix-ingolf-wagner.nix
# logging #./sync-opentracker.nix
#./sync-torrent.nix
# telemetry
# ---------
#./loki.nix #./loki.nix
#./loki-promtail.nix #./loki-promtail.nix
##./prometheus.nix ##./prometheus.nix

View file

@ -9,13 +9,13 @@
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
locations."/" = { locations."/" = {
proxyPass = "http://localhost:${toString config.services.gogs.httpPort}"; proxyPass = "http://localhost:${toString config.services.forgejo.httpPort}";
}; };
}; };
}; };
}; };
services.gitea = { services.forgejo = {
enable = true; enable = true;
appName = "git.ingolf-wagner.de"; appName = "git.ingolf-wagner.de";
#cookieSecure = true; #cookieSecure = true;

View file

@ -10,8 +10,8 @@
./hetzner.nix ./hetzner.nix
./borg.nix ./borg.nix
./codimd.nix #./codimd.nix
./gitea.nix #./gitea.nix
#./nextcloud.nix #./nextcloud.nix
./packages.nix ./packages.nix
./taskserver.nix ./taskserver.nix