1
0
Fork 0

enable reverseproxy on demand

This commit is contained in:
ibizaman 2023-06-27 23:21:28 -07:00
parent 8761dc2e9d
commit 6b9752e04c

View file

@ -5,6 +5,8 @@ let
in
{
options.shb.reverseproxy = {
enable = lib.mkEnableOption "selfhostblocks.reverseproxy";
sopsFile = lib.mkOption {
type = lib.types.path;
description = "Sops file location";
@ -55,7 +57,7 @@ in
};
};
config = lib.mkIf (cfg.sites != {}) {
config = lib.mkIf cfg.enable {
networking.firewall.allowedTCPPorts = [ 80 443 ];
security.acme = {