diff --git a/configs/gitea.nix b/configs/gitea.nix new file mode 100644 index 0000000..81df9c9 --- /dev/null +++ b/configs/gitea.nix @@ -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;"; + }; +} diff --git a/systems/makanek/configuration.nix b/systems/makanek/configuration.nix index c8a84a7..d0c73a4 100644 --- a/systems/makanek/configuration.nix +++ b/systems/makanek/configuration.nix @@ -11,21 +11,8 @@ in + - { - 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;