From f8af0399139544dc8bad009829577b5467f2d334 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Wed, 11 Nov 2020 10:18:04 +0100 Subject: [PATCH] chore(gitea): move into own config --- configs/gitea.nix | 13 +++++++++++++ systems/makanek/configuration.nix | 16 +--------------- 2 files changed, 14 insertions(+), 15 deletions(-) create mode 100644 configs/gitea.nix 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;