diff options
| author | Grisha Shipunov | 2025-02-02 20:50:39 +0100 |
|---|---|---|
| committer | Grisha Shipunov | 2025-02-02 20:50:39 +0100 |
| commit | 8086efe6ec04e5e1e5909501001db8defff746f3 (patch) | |
| tree | 3d7a518cb524c3243e1db97bd50d2a685dee7d67 /hosts/cloud/proxy/default.nix | |
| parent | e9ea354f513eeac76dbcc30ea2688fadef0b5013 (diff) | |
add landing page
Diffstat (limited to 'hosts/cloud/proxy/default.nix')
| -rw-r--r-- | hosts/cloud/proxy/default.nix | 18 |
1 files changed, 15 insertions, 3 deletions
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"; }; }; }; |
