27 lines
543 B
Nix
27 lines
543 B
Nix
{ config, pkgs, ... }:
|
|
|
|
let port = 28981;
|
|
in {
|
|
/* services.paperless-ng = {
|
|
enable = true;
|
|
inherit port;
|
|
passwordFile = config.age.secrets.paperless.path;
|
|
extraConfig = {
|
|
PAPERLESS_ADMIN_USER = "felschr";
|
|
PAPERLESS_OCR_LANGUAGE = "deu+eng";
|
|
};
|
|
};
|
|
|
|
services.nginx = {
|
|
virtualHosts."paperless.felschr.com" = {
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
locations."/" = {
|
|
proxyPass = "http://localhost:${toString port}";
|
|
proxyWebsockets = true;
|
|
};
|
|
};
|
|
};
|
|
*/
|
|
}
|