1
1
Fork 0

Add paperless-ngx service

Bill Ewanick 2023-10-07 18:50:52 -04:00
parent 764a44fee7
commit 6f707d849d
2 changed files with 22 additions and 0 deletions

View File

@ -7,6 +7,7 @@
./ewanick.com.nix ./ewanick.com.nix
./git.ewanick.com.nix ./git.ewanick.com.nix
./paperless.ewanick.com.nix
./fancytypist.com.nix ./fancytypist.com.nix
]; ];

View File

@ -0,0 +1,21 @@
{ pkgs, ... }:
let baseUrl = "paperless.ewanick.com";
in
{
services.paperless = {
enable = true;
address = "localhost";
port = "28981";
};
services.caddy = {
enable = true;
virtualHosts = {
"${baseUrl}" = {
extraConfig = ''
reverse_proxy localhost:28981
'';
};
};
};
}