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; enable = true;
appName = "Graven Gitea"; user = "gitea";
settings = { "ui" = { "DEFAULT_THEME" = "arc-green"; }; }; group = "gitea";
stateDir = "/var/lib/gitea";
database = { database = {
type = "postgres"; 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" = { "git.graven.dev" = {
enableACME = true; enableACME = true;
forceSSL = true; forceSSL = true;
locations."/".proxyPass = "http://unix:/run/gitea/gitea.sock:"; locations."/".proxyPass = "http://unix:/run/forgejo/forgejo.sock:";
}; };
"vault.graven.dev" = { "vault.graven.dev" = {
forceSSL = true; forceSSL = true;