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:
13
configs/gitea.nix
Normal file
13
configs/gitea.nix
Normal 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;";
|
||||
};
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user