add paperless to wireguard
This commit is contained in:
parent
74926ffb1c
commit
cf68a595d5
2 changed files with 4 additions and 2 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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."/" = {
|
||||||
|
|
Loading…
Reference in a new issue