mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
28 lines
641 B
Nix
28 lines
641 B
Nix
let
|
|
inherit (import ../../lib) sshPort;
|
|
domain = "https://code.kmein.de";
|
|
in {
|
|
services.gitea = {
|
|
enable = true;
|
|
appName = "code.kmein.de";
|
|
settings = {
|
|
server.ROOT_URL = domain;
|
|
server.SSH_PORT = sshPort;
|
|
service.DISABLE_REGISTRATION = true;
|
|
};
|
|
};
|
|
services.nginx.virtualHosts."code.kmein.de" = {
|
|
forceSSL = true;
|
|
enableACME = true;
|
|
locations."/".extraConfig = "proxy_pass http://localhost:3000;";
|
|
};
|
|
|
|
niveum.passport.services = [
|
|
{
|
|
link = domain;
|
|
title = "Gitea";
|
|
description = "hosts a couple of <tt>git</tt> repos. Registration is disabled.";
|
|
}
|
|
];
|
|
}
|