Commit 28f013563994
Changed files (1)
systems
sakhalin
systems/sakhalin/extra.nix
@@ -133,7 +133,11 @@ in
};
paperless = {
enable = true;
- address = "${builtins.head globals.machines.sakhalin.net.vpn.ips}";
+ address = "0.0.0.0"; # Listen on all interfaces for access via LAN and VPN
+ port = 8000;
+ settings = {
+ PAPERLESS_URL = "https://paperless.sbr.pm";
+ };
};
# PostgreSQL backups
postgresqlBackup = {
@@ -506,4 +510,9 @@ in
RestartSec = "5s";
};
};
+
+ # Open firewall for services accessible from the network
+ networking.firewall.allowedTCPPorts = [
+ 8000 # Paperless-ngx web interface
+ ];
}