enable reverseproxy on demand
This commit is contained in:
parent
8761dc2e9d
commit
6b9752e04c
1 changed files with 3 additions and 1 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue