From 9d655c122960b1e093737962084359de778a004b Mon Sep 17 00:00:00 2001 From: zuckerberg <5-zuckerberg@users.noreply.git.neet.dev> Date: Sun, 13 Jun 2021 19:10:14 -0400 Subject: [PATCH] gitea options --- common/server/gitea.nix | 3 +++ machines/liza/configuration.nix | 1 + 2 files changed, 4 insertions(+) diff --git a/common/server/gitea.nix b/common/server/gitea.nix index 08d8ce4..8101a63 100644 --- a/common/server/gitea.nix +++ b/common/server/gitea.nix @@ -12,6 +12,8 @@ in { config = lib.mkIf cfg.enable { services.gitea = { domain = cfg.hostname; + rootUrl = "https://${cfg.hostname}/"; + appName = cfg.hostname; ssh.enable = true; # lfs.enable = true; dump.enable = true; @@ -23,6 +25,7 @@ in { }; }; }; + services.nginx.enable = true; services.nginx.virtualHosts.${cfg.hostname} = { enableACME = true; forceSSL = true; diff --git a/machines/liza/configuration.nix b/machines/liza/configuration.nix index e4f35bf..a3e6b15 100644 --- a/machines/liza/configuration.nix +++ b/machines/liza/configuration.nix @@ -23,6 +23,7 @@ services.gitea = { enable = true; hostname = "git.neet.dev"; + disableRegistration = true; }; networking.hostName = "liza";