From 624aebdc32af182f095b9c2255e211e1673d176b Mon Sep 17 00:00:00 2001 From: ciapa Date: Thu, 11 Apr 2024 14:58:07 +0000 Subject: [PATCH] Fix vikunja deployment --- hosts/phoenix.lewd.wtf/services/vikunja.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/hosts/phoenix.lewd.wtf/services/vikunja.nix b/hosts/phoenix.lewd.wtf/services/vikunja.nix index 1f4e6d6..191f5ea 100644 --- a/hosts/phoenix.lewd.wtf/services/vikunja.nix +++ b/hosts/phoenix.lewd.wtf/services/vikunja.nix @@ -2,12 +2,23 @@ { services.vikunja = { enable = true; - setupNginx = true; frontendScheme = "https"; frontendHostname = "todo.lewd.wtf"; }; services.nginx.virtualHosts."todo.lewd.wtf" = { enableACME = true; forceSSL = true; + locations = { + "/" = { + root = pkgs.vikunja-frontend; + tryFiles = "try_files $uri $uri/ /"; + }; + "~* ^/(api|dav|\\.well-known)/" = { + proxyPass = "http://localhost:3456"; + extraConfig = '' + client_max_body_size 20M; + ''; + }; + }; }; }