1
1
Fork 0

Compare commits

..

2 Commits

Author SHA1 Message Date
Bill Ewanick dd117c5f6e Better practices 2024-01-14 16:22:19 -05:00
Bill Ewanick 263ef5008c Enable FancyTypist 2024-01-14 16:22:00 -05:00
3 changed files with 8 additions and 15 deletions

View File

@ -9,7 +9,7 @@
./git.ewanick.com.nix
./paperless.ewanick.com.nix
# ./fancytypist.com.nix
./fancytypist.com.nix
./hydra.fancyTypist.com.nix
];

View File

@ -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;
};
}

View File

@ -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}
'';
};
};