From 7c86415c500a187064ffcfb7e98204dcdbec51f3 Mon Sep 17 00:00:00 2001 From: Fugi Date: Sun, 6 Oct 2024 20:37:13 +0200 Subject: [PATCH] change ese web root --- modules/web/ese.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/web/ese.nix b/modules/web/ese.nix index acea225..95bd8d1 100644 --- a/modules/web/ese.nix +++ b/modules/web/ese.nix @@ -1,6 +1,7 @@ { config, ... }: let domain = "ese.${config.networking.domain}"; + webRoot = "/srv/web/ese"; in { services.nginx = { @@ -10,12 +11,12 @@ in return = "302 /2024/"; }; locations."/" = { - root = "/srv/web/ese/served"; + root = webRoot; tryFiles = "$uri $uri/ =404"; }; # cache static assets locations."~* \.(?:css|svg|webp|jpg|jpeg|gif|png|ico|mp4|mp3|ogg|ogv|webm|ttf|woff2|woff)$" = { - root = "/srv/web/ese/served"; + root = webRoot; extraConfig = '' expires 1y; '';