diff --git a/modules/servers/paperless.nix b/modules/servers/paperless.nix index c1cb657..9bcbf05 100644 --- a/modules/servers/paperless.nix +++ b/modules/servers/paperless.nix @@ -8,10 +8,12 @@ in networking.firewall.allowedTCPPorts = [ config.services.paperless.port ]; services.paperless = { inherit (cfg) enable; - address = "0.0.0.0"; + address = config.my.ips.server; consumptionDirIsPublic = true; consumptionDir = "/srv/pool/scans/"; settings = { + PAPERLESS_ACCOUNT_DEFAULT_HTTP_PROTOCOL = "http"; + PAPERLESS_URL = "http://${config.my.ips.server}:${config.services.paperless.port}"; PAPERLESS_DBENGINE = "postgress"; PAPERLESS_DBNAME = "paperless"; PAPERLESS_DBHOST = config.my.postgresSocket;