Fix vikunja deployment
This commit is contained in:
parent
08c26262d6
commit
624aebdc32
|
@ -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;
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue