about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2023-02-16 13:55:40 +0900
committerNguyễn Gia Phong <mcsinyx@disroot.org>2023-02-16 13:55:40 +0900
commitf8d40ed3c8b56b9d20a58cb95a52703379ec6ee0 (patch)
tree6aa718f2d1eed3fd883a63da6b1674a94eeb74e7
parent1e2d08072b1fb363b2ba63c6ea969bda729d5363 (diff)
downloadnixos-conf-f8d40ed3c8b56b9d20a58cb95a52703379ec6ee0.tar.gz
Set up photo gallery for cnx (me!)
-rw-r--r--static.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/static.nix b/static.nix
index 2a27b66..06a10e4 100644
--- a/static.nix
+++ b/static.nix
@@ -82,6 +82,18 @@ in {
           root = "/var/lib/www/cnx.gdn";
         };
 
+        "px.cnx.gdn" = {
+          enableACME = true;
+          forceSSL = true;
+          locations = {
+            "/".index = "index.xhtml";
+            "~ /index.xhtml$".extraConfig = ''
+              expires -1;
+            '';
+          };
+          root = "/var/lib/www/px.cnx.gdn";
+        };
+
         "septagram.suricrasia.online" = {
           enableACME = true;
           extraConfig = ''