summaryrefslogtreecommitdiff
path: root/hostnix/elmo
diff options
context:
space:
mode:
Diffstat (limited to 'hostnix/elmo')
-rw-r--r--hostnix/elmo/configuration.nix1
-rw-r--r--hostnix/elmo/git.nix23
2 files changed, 24 insertions, 0 deletions
diff --git a/hostnix/elmo/configuration.nix b/hostnix/elmo/configuration.nix
index d143dae..ec06b26 100644
--- a/hostnix/elmo/configuration.nix
+++ b/hostnix/elmo/configuration.nix
@@ -6,6 +6,7 @@
./dns.nix
./dyndns.nix
./email.nix
+ ./git.nix
./hardware-configuration.nix
./home-assistant.nix
./oidc.nix
diff --git a/hostnix/elmo/git.nix b/hostnix/elmo/git.nix
new file mode 100644
index 0000000..c032b5d
--- /dev/null
+++ b/hostnix/elmo/git.nix
@@ -0,0 +1,23 @@
+{ ... }:
+
+{
+ services.gitea = {
+ enable = true;
+ settings = {
+ server = {
+ ROOT_URL = "https://git.mou.fo/";
+ PROTOCOL = "http+unix";
+ DISABLE_REGISTRATION = true;
+ };
+ session = {
+ COOKIE_SECURE = true;
+ };
+ };
+ };
+
+ services.nginx.virtualHosts."git.mou.fo" = {
+ enableACME = true;
+ forceSSL = true;
+ locations."/".proxyPass = "http://unix:/run/gitea/gitea.sock";
+ };
+}