From 949787c8b5fdfcfa0d18c892b30b81c9a7d537a2 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Tue, 8 Jun 2021 10:00:54 +0200 Subject: Basic literatelb server config --- host/software/server/website.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'host') diff --git a/host/software/server/website.nix b/host/software/server/website.nix index 0a72e47..a5f65fb 100644 --- a/host/software/server/website.nix +++ b/host/software/server/website.nix @@ -52,6 +52,18 @@ "/nixexprs.tar.bz2" = proxy "http://code.kummerlaender.eu/pkgs/snapshot/master.tar.bz2"; }; - "literatelb.org" = website "literatelb"; + "literatelb.org" = let + sub = "literatelb"; + in default { + "/".root = "/home/public/${sub}/result"; + "/".extraConfig = '' + location ~* \.(?:html?|xml)$ { + expires -1; + } + location /tangle/ { + autoindex on; + } + ''; + }; }; } -- cgit v1.2.3