diff options
author | Adrian Kummerlaender | 2021-06-08 10:00:54 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2021-06-08 10:00:54 +0200 |
commit | 949787c8b5fdfcfa0d18c892b30b81c9a7d537a2 (patch) | |
tree | 6ef20dc6a5d450c0ebe05b97791d1176bd06cda2 /host | |
parent | 249aec089fd9d27ea8f2a34a120e9ce43ca184f9 (diff) | |
download | nixos_system-949787c8b5fdfcfa0d18c892b30b81c9a7d537a2.tar nixos_system-949787c8b5fdfcfa0d18c892b30b81c9a7d537a2.tar.gz nixos_system-949787c8b5fdfcfa0d18c892b30b81c9a7d537a2.tar.bz2 nixos_system-949787c8b5fdfcfa0d18c892b30b81c9a7d537a2.tar.lz nixos_system-949787c8b5fdfcfa0d18c892b30b81c9a7d537a2.tar.xz nixos_system-949787c8b5fdfcfa0d18c892b30b81c9a7d537a2.tar.zst nixos_system-949787c8b5fdfcfa0d18c892b30b81c9a7d537a2.zip |
Basic literatelb server config
Diffstat (limited to 'host')
-rw-r--r-- | host/software/server/website.nix | 14 |
1 files changed, 13 insertions, 1 deletions
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; + } + ''; + }; }; } |