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; + ''; + }; + }; }; }