Replace gitea with forgejo
This commit is contained in:
parent
d3c8c253f2
commit
5b36b4089d
|
@ -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.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";
|
||||
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";
|
||||
};
|
||||
};
|
||||
|
||||
users.users.gitea = {
|
||||
home = "/var/lib/gitea";
|
||||
useDefaultShell = true;
|
||||
group = "gitea";
|
||||
isSystemUser = true;
|
||||
};
|
||||
|
||||
users.groups.gitea = {};
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue