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
|
in
|
||||||
{
|
{
|
||||||
options.shb.reverseproxy = {
|
options.shb.reverseproxy = {
|
||||||
|
enable = lib.mkEnableOption "selfhostblocks.reverseproxy";
|
||||||
|
|
||||||
sopsFile = lib.mkOption {
|
sopsFile = lib.mkOption {
|
||||||
type = lib.types.path;
|
type = lib.types.path;
|
||||||
description = "Sops file location";
|
description = "Sops file location";
|
||||||
|
@ -55,7 +57,7 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf (cfg.sites != {}) {
|
config = lib.mkIf cfg.enable {
|
||||||
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
||||||
|
|
||||||
security.acme = {
|
security.acme = {
|
||||||
|
|
Loading…
Reference in a new issue