1
1
Fork 0

Better practices

main
Bill Ewanick 2024-01-14 16:22:19 -05:00
parent 263ef5008c
commit dd117c5f6e
1 changed files with 7 additions and 4 deletions

View File

@ -1,11 +1,14 @@
{ pkgs, ... }: { pkgs, ... }:
let baseUrl = "paperless.ewanick.com"; let
baseUrl = "paperless.ewanick.com";
HOST = "localhost";
PORT = 28981;
in in
{ {
services.paperless = { services.paperless = {
enable = true; enable = true;
address = "localhost"; address = HOST;
port = 28981; port = PORT;
passwordFile = "/run/keys/paperless-password"; passwordFile = "/run/keys/paperless-password";
}; };
systemd.services.paperless-scheduler.after = [ "var-lib-paperless.mount" ]; systemd.services.paperless-scheduler.after = [ "var-lib-paperless.mount" ];
@ -17,7 +20,7 @@ in
virtualHosts = { virtualHosts = {
"${baseUrl}" = { "${baseUrl}" = {
extraConfig = '' extraConfig = ''
reverse_proxy localhost:28981 reverse_proxy ${HOST}:${toString PORT}
''; '';
}; };
}; };