add paperless to wireguard

This commit is contained in:
Ingolf Wagner 2024-05-22 09:28:11 +02:00
parent 74926ffb1c
commit cf68a595d5
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
2 changed files with 4 additions and 2 deletions

View file

@ -23,8 +23,10 @@
networking.firewall.interfaces.wg0.allowedTCPPorts = [ config.services.paperless.port ];
services.nginx.virtualHosts."paperless.${config.networking.hostName}.private" = {
serverAliases = [ "paperless.ingolf-wagner.de" ];
extraConfig = ''
allow ${config.tinc.private.subnet};
allow ${config.wireguard.wg0.subnet};
deny all;
'';
locations."/" = {