From 74977a5367666c3b39d1d9c3c80d9fc4f08305c1 Mon Sep 17 00:00:00 2001 From: Mel Date: Wed, 13 Nov 2024 21:31:32 +0100 Subject: Import old lapin configuration Signed-off-by: Mel --- machines/lapin/default.nix | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 machines/lapin/default.nix (limited to 'machines/lapin/default.nix') diff --git a/machines/lapin/default.nix b/machines/lapin/default.nix new file mode 100644 index 0000000..2047cba --- /dev/null +++ b/machines/lapin/default.nix @@ -0,0 +1,35 @@ +{ me, pkgs, lib, ... }: + +{ + imports = [ + ../../modules/common.nix + + ./hardware.nix + ./devices.nix + + ../../modules/www.nix + ]; + + services.nginx.virtualHosts = { + "soc.rnrd.eu" = { + forceSSL = true; + enableACME = true; + + locations."/" = { + proxyWebsockets = true; + proxyPass = "http://127.0.0.1:1111"; + }; + }; + + "matrix.rnrd.eu" = { + forceSSL = true; + enableACME = true; + + locations."/_matrix" = { + proxyPass = "http://127.0.0.1:8008"; + }; + }; + }; + + system.stateVersion = "23.05"; +} -- cgit 1.4.1