install paperless-ngx

This commit is contained in:
stupidcomputer 2024-11-13 22:00:07 -06:00
parent fc13c1cd7d
commit 3b44d72d0f
4 changed files with 27 additions and 0 deletions

View File

@ -5,5 +5,6 @@
./wireguard.nix ./wireguard.nix
./grafana.nix ./grafana.nix
./nextcloud.nix ./nextcloud.nix
./paperless.nix
]; ];
} }

View File

@ -0,0 +1,10 @@
{ lib, config, pkgs, ...}:
{
services.paperless = {
enable = true;
passwordFile = "/home/usr/wg-keys/paperless";
address = "10.100.0.2";
port = 6230;
};
}

View File

@ -19,6 +19,7 @@
./wireguard.nix ./wireguard.nix
./nextcloud-bridge.nix ./nextcloud-bridge.nix
./grafana-bridge.nix ./grafana-bridge.nix
./paperless-bridge.nix
./prometheus.nix ./prometheus.nix
./socks.nix ./socks.nix
]; ];

View File

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