From 8086efe6ec04e5e1e5909501001db8defff746f3 Mon Sep 17 00:00:00 2001 From: Grisha Shipunov Date: Sun, 2 Feb 2025 20:50:39 +0100 Subject: add landing page --- hosts/cloud/proxy/default.nix | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'hosts/cloud/proxy') diff --git a/hosts/cloud/proxy/default.nix b/hosts/cloud/proxy/default.nix index c225ce3..42430b1 100644 --- a/hosts/cloud/proxy/default.nix +++ b/hosts/cloud/proxy/default.nix @@ -1,4 +1,7 @@ -{ ... }: +{ inputs, ... }: +let + website = inputs.website.packages."x86_64-linux".default; +in { imports = [ ./auth.nix @@ -49,12 +52,21 @@ add_header X-Content-Type-Options nosniff; ''; # default vhost + virtualHosts."oxapentane.com" = { forceSSL = true; enableACME = true; - # default = true; + default = true; locations."/" = { - return = "503"; + root = "${website}"; + index = "index.html"; + }; + }; + virtualHosts."www.oxapentane.com" = { + forceSSL = true; + enableACME = true; + locations."/" = { + return = "302 https://oxapentane.com"; }; }; }; -- cgit v1.3.1