feat: Migrate from gitea to forgejo

This commit is contained in:
Alexander Kobjolke 2024-03-25 00:29:52 +01:00
parent bd7e5f5d14
commit 749dbb765d
2 changed files with 16 additions and 9 deletions

View file

@ -6,7 +6,7 @@
repositories = {
"org" = {
path = "${config.home.homeDirectory}/org";
uri = "git+ssh://gitea@git.failco.de:jakalx/org.git";
uri = "git+ssh://git@git.failco.de:jakalx/org.git";
};
};
};

View file

@ -215,13 +215,13 @@ in {
'';
};
# gitea
"${config.services.gitea.settings.server.DOMAIN}" = {
# forgejo - git web frontend
"${config.services.forgejo.settings.server.DOMAIN}" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://127.0.0.1:${
toString config.services.gitea.settings.server.HTTP_PORT
toString config.services.forgejo.settings.server.HTTP_PORT
}/";
proxyWebsockets = true;
};
@ -252,8 +252,16 @@ in {
};
};
services.gitea = {
users.users.git = {
home = config.services.forgejo.stateDir;
useDefaultShell = true;
group = config.services.forgejo.group;
isSystemUser = true;
};
services.forgejo = {
enable = true;
user = "git";
database.type = "sqlite3";
lfs.enable = true;
@ -269,10 +277,9 @@ in {
mailer = {
ENABLED = true;
MAILER_TYPE = "smtp";
FROM = "git@failco.de";
HOST = "thrall.failco.de:25";
IS_TLS_ENABLED = false;
PROTOCOL = "smtp";
SENDMAIL_PATH = "${pkgs.system-sendmail}/bin/sendmail";
FROM = "noreply@failco.de";
};
};
};