From 4613f66cf2e761e0cf5e19990c7b4be7aca66913 Mon Sep 17 00:00:00 2001 From: Victor Date: Wed, 27 Oct 2021 16:06:22 +0200 Subject: [PATCH] nginx: wooloofan.club --- hosts/nginx/configuration.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/hosts/nginx/configuration.nix b/hosts/nginx/configuration.nix index f986249..9fbfc5a 100644 --- a/hosts/nginx/configuration.nix +++ b/hosts/nginx/configuration.nix @@ -31,6 +31,7 @@ recommendedProxySettings = true; recommendedTlsSettings = true; + virtualHosts."ha.0x76.dev" = { enableACME = true; forceSSL = true; @@ -48,6 +49,25 @@ proxyWebsockets = true; }; }; + + # TODO: Make a function for adding hostnames to k8s endpoint(s). + virtualHosts."wooloofan.club" = { + enableACME = true; + forceSSL = true; + locations."/" = { + proxyPass = "http://10.42.42.150:8000/"; + proxyWebsockets = true; + }; + }; + + virtualHosts."whoami.wooloofan.club" = { + enableACME = true; + forceSSL = true; + locations."/" = { + proxyPass = "http://10.42.42.150:8000/"; + proxyWebsockets = true; + }; + }; }; security.acme.email = "victorheld12@gmail.com";