update paperless
This commit is contained in:
parent
60422a1900
commit
285b1a1963
2 changed files with 14 additions and 4 deletions
|
@ -12,6 +12,13 @@
|
|||
};
|
||||
};
|
||||
|
||||
services.permown."/var/lib/paperless/consume" = {
|
||||
owner = "paperless";
|
||||
group = "paperless";
|
||||
directory-mode = "755";
|
||||
file-mode = "640";
|
||||
};
|
||||
|
||||
networking.firewall.interfaces.wg0.allowedTCPPorts = [ config.services.paperless.port ];
|
||||
|
||||
services.nginx.virtualHosts."paperless.${config.networking.hostName}.private" = {
|
||||
|
@ -20,6 +27,9 @@
|
|||
deny all;
|
||||
'';
|
||||
locations."/" = {
|
||||
extraConfig = ''
|
||||
client_max_body_size 500M;
|
||||
'';
|
||||
proxyPass = "http://localhost:${toString config.services.paperless.port}";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue