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

@ -24,8 +24,8 @@ let
}; };
#taskwarrior-ui = pkgs.unstable.taskwarrior-tui; #taskwarrior-ui = pkgs.unstable.taskwarrior-tui;
taskwarrior-tui = pkgs.taskwarrior-tui; taskwarrior-tui = pkgs.taskwarrior-tui;
in in

View file

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