summary refs log tree commit diff
path: root/services/akkoma/default.nix
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2024-12-26 17:24:04 +0100
committerMel <einebeere@gmail.com>2024-12-26 17:31:29 +0100
commitce64e6e1990b62451acb3822b7ab914e16b122b6 (patch)
tree3793d855dc49b849e82c919a36d4c376bf00f36f /services/akkoma/default.nix
parent98cdef36e124b0b5ae90021a92408bb7899660c2 (diff)
downloadnetwork-ce64e6e1990b62451acb3822b7ab914e16b122b6.tar.zst
network-ce64e6e1990b62451acb3822b7ab914e16b122b6.zip
Pull out web configuration from specific machine modules
Signed-off-by: Mel <einebeere@gmail.com>
Diffstat (limited to 'services/akkoma/default.nix')
-rw-r--r--services/akkoma/default.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/services/akkoma/default.nix b/services/akkoma/default.nix
index 939e9be..101d805 100644
--- a/services/akkoma/default.nix
+++ b/services/akkoma/default.nix
@@ -108,4 +108,18 @@ in
       entrypoint = "/bin/fedifetcher-entry.sh";
     };
   };
+
+  services.nginx.virtualHosts."soc.rnrd.eu" = {
+    forceSSL = true;
+    enableACME = true;
+
+    locations."/" = {
+      proxyWebsockets = true;
+      proxyPass = "http://127.0.0.1:${toString akkomaLocalPort}";
+    };
+
+    extraConfig = ''
+      access_log /var/log/nginx/akkoma.access.log json_combined;
+    '';
+  };
 }