mirror of
https://github.com/thiloho/nixos-config.git
synced 2025-11-22 03:21:35 +01:00
Add gitea instance
This commit is contained in:
@@ -85,6 +85,11 @@
|
|||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
locations."/".proxyPass = "http://localhost:5173";
|
locations."/".proxyPass = "http://localhost:5173";
|
||||||
};
|
};
|
||||||
|
"git.thilohohlt.com" = {
|
||||||
|
enableACME = true;
|
||||||
|
forceSSL = true;
|
||||||
|
locations."/".proxyPass = "http://localhost:3001";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
hedgedoc = {
|
hedgedoc = {
|
||||||
@@ -104,15 +109,33 @@
|
|||||||
};
|
};
|
||||||
environmentFile = config.age.secrets.hedgedoc-environment-file.path;
|
environmentFile = config.age.secrets.hedgedoc-environment-file.path;
|
||||||
};
|
};
|
||||||
|
gitea = {
|
||||||
|
enable = true;
|
||||||
|
appName = "Gitea instance of Thilo";
|
||||||
|
database = {
|
||||||
|
type = "postgres";
|
||||||
|
host = "/run/postgresql";
|
||||||
|
};
|
||||||
|
settings.service.DISABLE_REGISTRATION = true;
|
||||||
|
settings.server = {
|
||||||
|
DOMAIN = "thilohohlt.com";
|
||||||
|
ROOT_URL = "https://git.thilohohlt.com";
|
||||||
|
HTTP_PORT = 3001;
|
||||||
|
};
|
||||||
|
};
|
||||||
postgresql = {
|
postgresql = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.postgresql_15;
|
package = pkgs.postgresql_15;
|
||||||
ensureDatabases = [ "dcbot" "hedgedoc" "todos" ];
|
ensureDatabases = [ "dcbot" "hedgedoc" "todos" "gitea" ];
|
||||||
ensureUsers = [
|
ensureUsers = [
|
||||||
{
|
{
|
||||||
name = "hedgedoc";
|
name = "hedgedoc";
|
||||||
ensurePermissions."DATABASE hedgedoc" = "ALL PRIVILEGES";
|
ensurePermissions."DATABASE hedgedoc" = "ALL PRIVILEGES";
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
name = "gitea";
|
||||||
|
ensurePermissions."DATABASE gitea" = "ALL PRIVILEGES";
|
||||||
|
}
|
||||||
];
|
];
|
||||||
authentication = lib.mkForce ''
|
authentication = lib.mkForce ''
|
||||||
#type database DBuser auth-method
|
#type database DBuser auth-method
|
||||||
|
|||||||
Reference in New Issue
Block a user