From 7889e9e3b3af9ff98d0e4a54374845d93d05fbcb Mon Sep 17 00:00:00 2001 From: Dmitriy Kholkin Date: Sun, 20 Nov 2022 19:14:20 +0300 Subject: [PATCH] fix root location --- profiles/servers/nginx.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/profiles/servers/nginx.nix b/profiles/servers/nginx.nix index cc4668d..22b785f 100644 --- a/profiles/servers/nginx.nix +++ b/profiles/servers/nginx.nix @@ -75,15 +75,18 @@ ''; in { "ataraxiadev.com" = { + locations."/" = { + root = "/srv/http/ataraxiadev.com/"; + extraConfig = '' + try_files $uri $uri/ =404; + ''; + }; locations."/.well-known/matrix" = { proxyPass = "https://matrix.ataraxiadev.com/.well-known/matrix"; extraConfig = '' proxy_set_header X-Forwarded-For $remote_addr; ''; }; - locations."/" = { - extraConfig = "try_files $uri $uri/ =404;"; - }; locations."/cgi-bin/" = with config.services; { extraConfig = '' gzip off;