about summary refs log tree commit diff
path: root/nix
diff options
context:
space:
mode:
authorEmile <git@emile.space>2024-07-21 17:41:03 +0200
committerEmile <git@emile.space>2024-07-21 17:41:03 +0200
commitbf4cc39971f094eceb6ab3b190887ad0de7458ac (patch)
tree5dc34b7ec78eb7434e349d89f34441e5320bf4cd /nix
parentb1140ee81828a97a3bdcb098ae88c5ad33c2e93e (diff)
r2wars parking page
Diffstat (limited to 'nix')
-rw-r--r--nix/hosts/corrino/www/r2wa.rs.nix16
-rw-r--r--nix/hosts/corrino/www/tmp.emile.space.nix17
2 files changed, 33 insertions, 0 deletions
diff --git a/nix/hosts/corrino/www/r2wa.rs.nix b/nix/hosts/corrino/www/r2wa.rs.nix
new file mode 100644
index 0000000..f7a0a7e
--- /dev/null
+++ b/nix/hosts/corrino/www/r2wa.rs.nix
@@ -0,0 +1,16 @@
+{ ... }:
+
+{
+  services.nginx.virtualHosts."r2wa.rs" = {
+    forceSSL = true;
+    enableACME = true;
+
+    # kTLS = true;
+
+    locations = {
+      "/" = {
+				return = "301 http://emile.space/blog/2020/r2wars/";
+      };
+		};
+	};
+}
diff --git a/nix/hosts/corrino/www/tmp.emile.space.nix b/nix/hosts/corrino/www/tmp.emile.space.nix
new file mode 100644
index 0000000..eeb7f8b
--- /dev/null
+++ b/nix/hosts/corrino/www/tmp.emile.space.nix
@@ -0,0 +1,17 @@
+{
+  services.nginx.virtualHosts."tmp.emile.space" = {
+    forceSSL = true;
+    enableACME = true;
+    serverName = "tmp.emile.space";
+
+    locations = {
+      "/" = {
+        root = "/var/www/tmp.emile.space";
+        extraConfig = ''
+          add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
+          autoindex on;
+        ''; 
+      };
+    };
+  };
+}