summaryrefslogtreecommitdiff
path: root/hosts/fscusat/modules/www.nix
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-02-17 18:31:41 +0530
committersinanmohd <sinan@sinanmohd.com>2024-02-17 21:24:02 +0530
commitbf12a289b2e4c8f22d1be781408a6d1273fd3b04 (patch)
tree6bf2eb88598db2d47119247d92be7bfb7b688b48 /hosts/fscusat/modules/www.nix
parent60ed7bde534f23be9e3ee5429f72cf63ac8bfff2 (diff)
fscusat/modules/mirror: init
Diffstat (limited to 'hosts/fscusat/modules/www.nix')
-rw-r--r--hosts/fscusat/modules/www.nix5
1 files changed, 1 insertions, 4 deletions
diff --git a/hosts/fscusat/modules/www.nix b/hosts/fscusat/modules/www.nix
index 464aaa6..24398da 100644
--- a/hosts/fscusat/modules/www.nix
+++ b/hosts/fscusat/modules/www.nix
@@ -30,10 +30,7 @@ in
sslCertificateKey = config.sops.secrets."cusat.ac.in/key".path;
sslCertificate = config.sops.secrets."cusat.ac.in/crt".path;
- locations."/" = {
- return = "200 '<h1>under construction</h1>'";
- extraConfig = "add_header Content-Type text/html;";
- };
+ locations."/".extraConfig = "return 307 $scheme://$host/mirror/;";
};
};
}