install paperless-ngx
This commit is contained in:
parent
fc13c1cd7d
commit
3b44d72d0f
|
@ -5,5 +5,6 @@
|
|||
./wireguard.nix
|
||||
./grafana.nix
|
||||
./nextcloud.nix
|
||||
./paperless.nix
|
||||
];
|
||||
}
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
{ lib, config, pkgs, ...}:
|
||||
|
||||
{
|
||||
services.paperless = {
|
||||
enable = true;
|
||||
passwordFile = "/home/usr/wg-keys/paperless";
|
||||
address = "10.100.0.2";
|
||||
port = 6230;
|
||||
};
|
||||
}
|
|
@ -19,6 +19,7 @@
|
|||
./wireguard.nix
|
||||
./nextcloud-bridge.nix
|
||||
./grafana-bridge.nix
|
||||
./paperless-bridge.nix
|
||||
./prometheus.nix
|
||||
./socks.nix
|
||||
];
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
services.nginx.virtualHosts."paperless.beepboop.systems" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://10.100.0.2:6230";
|
||||
extraConfig = ''
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header Host $host;
|
||||
proxy_buffering off;
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue