summaryrefslogtreecommitdiff
path: root/hosts/cloud
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/cloud')
-rw-r--r--hosts/cloud/proxy/default.nix18
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";
};
};
};