summaryrefslogtreecommitdiff
path: root/hostnix/elmo
diff options
context:
space:
mode:
authorJoe Mou <dev@mou.fo>2024-06-25 20:44:22 -0400
committerJoe Mou <dev@mou.fo>2024-10-09 13:48:41 -0400
commit19805b91322878264cc235c880c04fdabafa0949 (patch)
tree5e519e570b62ef8f53af3e4884cc5fd296b92de7 /hostnix/elmo
parent1f2beb9c0b6b11ceea39f7e96fc971b3082634f6 (diff)
Try out Gitea
DISABLE_REGISTRATION needs to be set after the initial administrator account is manually registered. Considered the Forgejo community fork, but it doesn't seem to have attracted very much of the developer community. Despite concerns about copyright claims, Gitea does not have a CLA; it is MIT licensed. Still considering even lighter weight options that may be easier to programmatically control (just an HTTP server that speaks the smart protocol?). For managing groups of repositories, can use labels or organizations. Neither seem particularly convenient. Gitea defaults to public repositories.
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";
+ };
+}