1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

chore(gitea): move into own config

This commit is contained in:
2020-11-11 10:18:04 +01:00
parent 46882af11e
commit f8af039913
2 changed files with 14 additions and 15 deletions

13
configs/gitea.nix Normal file
View File

@@ -0,0 +1,13 @@
{
services.gitea = {
enable = true;
disableRegistration = true;
rootUrl = "https://code.xn--kiern-0qa.de";
appName = "code.kierán.de";
};
services.nginx.virtualHosts."code.xn--kiern-0qa.de" = {
forceSSL = true;
enableACME = true;
locations."/".extraConfig = "proxy_pass http://localhost:3000;";
};
}

View File

@@ -11,21 +11,8 @@ in
<niveum/configs/nextcloud.nix>
<niveum/configs/save-space.nix>
<niveum/configs/version.nix>
<niveum/configs/gitea.nix>
<niveum/modules/retiolum.nix>
{
services.gitea = {
enable = true;
disableRegistration = true;
rootUrl = "https://code.xn--kiern-0qa.de";
appName = "code.kierán.de";
};
networking.firewall.allowedTCPPorts = [ config.services.gitea.httpPort ];
services.nginx.virtualHosts."code.xn--kiern-0qa.de" ={
forceSSL = true;
enableACME = true;
locations."/".extraConfig = "proxy_pass http://localhost:3000;";
};
}
];
boot.loader.grub.enable = true;
@@ -54,7 +41,6 @@ in
networking.firewall.allowedTCPPorts = [ 80 443 ];
services.nginx = {
enable = true;
recommendedGzipSettings = true;