Compare commits
2 Commits
18a5d06903
...
dd117c5f6e
Author | SHA1 | Date |
---|---|---|
Bill Ewanick | dd117c5f6e | |
Bill Ewanick | 263ef5008c |
|
@ -9,7 +9,7 @@
|
||||||
./git.ewanick.com.nix
|
./git.ewanick.com.nix
|
||||||
./paperless.ewanick.com.nix
|
./paperless.ewanick.com.nix
|
||||||
|
|
||||||
# ./fancytypist.com.nix
|
./fancytypist.com.nix
|
||||||
./hydra.fancyTypist.com.nix
|
./hydra.fancyTypist.com.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -65,14 +65,4 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.emanote = {
|
|
||||||
enable = true;
|
|
||||||
# host = "127.0.0.1"; # default listen address is 127.0.0.1
|
|
||||||
# port = 7000; # default http port is 7000
|
|
||||||
notes = [
|
|
||||||
"/workspace/admin"
|
|
||||||
];
|
|
||||||
package = emanote.packages.${system}.default;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue