Replace gitea with forgejo

This commit is contained in:
Amanda Graven 2023-12-13 20:27:13 +01:00
parent d3c8c253f2
commit 5b36b4089d
Signed by: amanda
GPG key ID: F747582C5608F4CB
2 changed files with 25 additions and 9 deletions

View file

@ -1,17 +1,33 @@
{ ... }:
{
services.gitea = {
services.forgejo = {
enable = true;
appName = "Graven Gitea";
settings = { "ui" = { "DEFAULT_THEME" = "arc-green"; }; };
user = "gitea";
group = "gitea";
stateDir = "/var/lib/gitea";
database = {
type = "postgres";
name = "gitea";
user = "gitea";
};
settings = {
DEFAULT.APP_NAME = "Graven Gitea";
service.DISABLE_REGISTRATION = true;
session.COOKIE_SECURE = true;
server.DOMAIN = "git.graven.dev";
server.ROOT_URL = "https://git.graven.dev";
server.PROTOCOL = "http+unix";
ui.DEFAULT_THEME = "arc-green";
};
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";
};
users.users.gitea = {
home = "/var/lib/gitea";
useDefaultShell = true;
group = "gitea";
isSystemUser = true;
};
users.groups.gitea = {};
}

View file

@ -32,7 +32,7 @@
"git.graven.dev" = {
enableACME = true;
forceSSL = true;
locations."/".proxyPass = "http://unix:/run/gitea/gitea.sock:";
locations."/".proxyPass = "http://unix:/run/forgejo/forgejo.sock:";
};
"vault.graven.dev" = {
forceSSL = true;