From 162e1d990b6b7377bfe87c3afd50f645b93f00a8 Mon Sep 17 00:00:00 2001 From: Julien Malka Date: Fri, 29 Jul 2022 09:30:49 +0200 Subject: [PATCH] Added redirections --- machines/lisa/default.nix | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/machines/lisa/default.nix b/machines/lisa/default.nix index 65cab40..3a99ed9 100644 --- a/machines/lisa/default.nix +++ b/machines/lisa/default.nix @@ -112,10 +112,10 @@ }; services.openssh.extraConfig = '' - HostCertificate /etc/ssh/ssh_host_ed25519_key-cert.pub - HostKey /etc/ssh/ssh_host_ed25519_key - TrustedUserCAKeys /etc/ssh/ssh_user_key.pub - MaxAuthTries 20 + HostCertificate /etc/ssh/ssh_host_ed25519_key-cert.pub + HostKey /etc/ssh/ssh_host_ed25519_key + TrustedUserCAKeys /etc/ssh/ssh_user_key.pub + MaxAuthTries 20 ''; @@ -129,6 +129,23 @@ proxyPass = "https://100.74.49.77"; }; }; + services.nginx.virtualHosts."link.julienmalka.me" = { + forceSSL = true; + enableACME = true; + locations."/" = { + proxyWebsockets = true; + proxyPass = "https://100.127.245.71"; + }; + }; + + services.nginx.virtualHosts."crypto.saumon.network" = { + forceSSL = true; + enableACME = true; + locations."/" = { + proxyWebsockets = true; + proxyPass = "https://100.127.245.71"; + }; + }; system.stateVersion = "21.11";