summaryrefslogtreecommitdiff
path: root/os/fscusat/modules/mirror/www.nix
diff options
context:
space:
mode:
Diffstat (limited to 'os/fscusat/modules/mirror/www.nix')
-rw-r--r--os/fscusat/modules/mirror/www.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/os/fscusat/modules/mirror/www.nix b/os/fscusat/modules/mirror/www.nix
new file mode 100644
index 0000000..ebde425
--- /dev/null
+++ b/os/fscusat/modules/mirror/www.nix
@@ -0,0 +1,11 @@
+{ ... }:
+
+let
+ domain = "foss.fscusat.ac.in";
+in
+{
+ services.nginx.virtualHosts.${domain}.locations."/mirror/" = {
+ alias = "/var/cache/mirror/";
+ extraConfig = "autoindex on;";
+ };
+}