paperless accessible via wireguard
This commit is contained in:
parent
18a10f569f
commit
7e05a9438b
1 changed files with 4 additions and 0 deletions
|
@ -1,7 +1,11 @@
|
||||||
{ config, ... }: {
|
{ config, ... }: {
|
||||||
|
|
||||||
services.paperless = {
|
services.paperless = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
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" = {
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
allow ${config.tinc.private.subnet};
|
allow ${config.tinc.private.subnet};
|
||||||
|
|
Loading…
Reference in a new issue