about summary refs log tree commit diff
path: root/nix/hosts/corrino/www/tmp.emile.space.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix/hosts/corrino/www/tmp.emile.space.nix')
-rw-r--r--nix/hosts/corrino/www/tmp.emile.space.nix17
1 files changed, 17 insertions, 0 deletions
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;
+        ''; 
+      };
+    };
+  };
+}