vps-arm-2024-06-21-21-12-49
This commit is contained in:
35
services/gitea.nix
Normal file
35
services/gitea.nix
Normal file
@ -0,0 +1,35 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
services = {
|
||||
postgresql = {
|
||||
enable = true;
|
||||
ensureDatabases = [
|
||||
config.services.gitea.user
|
||||
];
|
||||
ensureUsers = [
|
||||
{
|
||||
name = config.services.gitea.database.user;
|
||||
ensureDBOwnership = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
gitea = {
|
||||
enable = true;
|
||||
appName = "My awesome Gitea server"; # Give the site a name
|
||||
database = {
|
||||
type = "postgres";
|
||||
password = "REMOVED_OLD_PASSWORD_FROM_HISTORY";
|
||||
};
|
||||
settings = {
|
||||
server = {
|
||||
DOMAIN = "git.v220240679185274666.nicesrv.de";
|
||||
ROOT_URL = "https://git.v220240679185274666.nicesrv.de/";
|
||||
HTTP_PORT = 3001;
|
||||
HTTP_ADDR = "127.0.0.1";
|
||||
};
|
||||
service.DISABLE_REGISTRATION = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user