add paperless.nix
This commit is contained in:
parent
6e39450295
commit
7d6f0bd007
3 changed files with 18 additions and 0 deletions
|
@ -47,6 +47,7 @@ let
|
|||
"tdarr.chungus" = hosts.chungus;
|
||||
"trilium.chungus" = hosts.chungus;
|
||||
"tts.chungus" = hosts.chungus;
|
||||
"paperless.chungus" = hosts.chungus;
|
||||
# cream
|
||||
"trilium.cream" = hosts.cream;
|
||||
};
|
||||
|
|
|
@ -62,6 +62,8 @@
|
|||
|
||||
./docker-registry.nix
|
||||
|
||||
./paperless.nix
|
||||
|
||||
];
|
||||
|
||||
components.gui.enable = false;
|
||||
|
|
15
nixos/machines/chungus/paperless.nix
Normal file
15
nixos/machines/chungus/paperless.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{ config, ... }: {
|
||||
services.paperless = {
|
||||
enable = true;
|
||||
};
|
||||
services.nginx.virtualHosts."paperless.${config.networking.hostName}.private" = {
|
||||
extraConfig = ''
|
||||
allow ${config.tinc.private.subnet};
|
||||
deny all;
|
||||
'';
|
||||
locations."/" = {
|
||||
proxyPass = "http://localhost:${toString config.services.paperless.port}";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue