Add paperless-ngx service
This commit is contained in:
parent
764a44fee7
commit
359ddc7048
2 changed files with 22 additions and 0 deletions
|
|
@ -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
|
||||||
];
|
];
|
||||||
|
|
|
||||||
21
nixos-apps/paperless.ewanick.com.nix
Normal file
21
nixos-apps/paperless.ewanick.com.nix
Normal 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
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue