migrate gitea to forgejo

This commit is contained in:
nyanloutre 2025-03-10 11:54:06 +01:00
parent dc4ee4c4c5
commit 2f0d121c35

View File

@ -219,7 +219,7 @@ in
proxyWebsockets = true; proxyWebsockets = true;
}; };
}; };
"gitea.nyanlout.re" = simpleReverse config.services.gitea.settings.server.HTTP_PORT; "gitea.nyanlout.re" = simpleReverse config.services.forgejo.settings.server.HTTP_PORT;
"photo.nyanlout.re" = recursiveUpdate (simpleReverse config.services.photoprism.port) { "photo.nyanlout.re" = recursiveUpdate (simpleReverse config.services.photoprism.port) {
locations."/" = { locations."/" = {
proxyWebsockets = true; proxyWebsockets = true;
@ -298,17 +298,20 @@ in
}; };
}; };
gitea = { forgejo = {
enable = true; enable = true;
stateDir = "/var/lib/gitea";
database = { database = {
type = "postgres"; type = "postgres";
port = 5432; user = "gitea";
passwordFile = "/var/lib/gitea/custom/conf/database_password"; passwordFile = "/var/lib/gitea/custom/conf/database_password";
name = "gitea";
}; };
settings = { settings = {
server = { server = rec {
HTTP_PORT = 3001; HTTP_PORT = 3001;
ROOT_URL = "https://gitea.nyanlout.re/"; DOMAIN = "gitea.nyanlout.re;
ROOT_URL = "https://${DOMAIN}/";
}; };
log.LEVEL = "Warn"; log.LEVEL = "Warn";
service.DISABLE_REGISTRATION = true; service.DISABLE_REGISTRATION = true;