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