summary refs log tree commit diff
path: root/machines
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2024-11-04 04:26:21 +0100
committerMel <einebeere@gmail.com>2024-11-04 04:26:21 +0100
commit29abea4f6604a10b922bd2ba97aa3b037066a837 (patch)
tree0b68bb90ea88af62963527d9d998259b932e6425 /machines
parent4845b62083018a273846323dcfbb09e2ee8bff4f (diff)
downloadnetwork-29abea4f6604a10b922bd2ba97aa3b037066a837.tar.zst
network-29abea4f6604a10b922bd2ba97aa3b037066a837.zip
Add renard services nginx config
Signed-off-by: Mel <einebeere@gmail.com>
Diffstat (limited to 'machines')
-rw-r--r--machines/renard/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/machines/renard/default.nix b/machines/renard/default.nix
index 680e2cd..0fbd01d 100644
--- a/machines/renard/default.nix
+++ b/machines/renard/default.nix
@@ -10,5 +10,35 @@
     ../../modules/www.nix
   ];
 
+  services.nginx = {
+    "sho.rest" = {
+      enableACME = true;
+      forceSSL = true;
+      locations."/" = {
+        proxyPass = "http://127.0.0.1:5000";
+      };
+    };
+
+    "mel.gg" = {
+      enableACME = true;
+      forceSSL = true;
+      root = "/srv/mel";
+    };
+
+    "git.rnrd.eu" = {
+      enableACME = true;
+      forceSSL = true;
+      locations = {
+        "/" = {
+          proxyPass = "http://127.0.0.1:3792";
+        };
+
+        "/static/" = {
+          alias = "/srv/cgit/static/";
+        };
+      };
+    };
+  };
+
   system.stateVersion = "24.05";
 }