paperless accessible via wireguard

This commit is contained in:
Ingolf Wagner 2024-03-06 13:22:22 +01:00
parent 18a10f569f
commit 7e05a9438b
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B

View file

@ -1,7 +1,11 @@
{ config, ... }: {
services.paperless = {
enable = true;
};
networking.firewall.interfaces.wg0.allowedTCPPorts = [ config.services.paperless.port ];
services.nginx.virtualHosts."paperless.${config.networking.hostName}.private" = {
extraConfig = ''
allow ${config.tinc.private.subnet};