modularized firewall logic
This commit is contained in:
@@ -6,7 +6,6 @@ in
|
||||
{
|
||||
options.my.servers.metube = setup.mkOptions "metube" "bajameesta" 8881;
|
||||
config = {
|
||||
networking.firewall.allowedTCPPorts = lib.mkIf (!cfg.isLocal) [ cfg.port ];
|
||||
virtualisation.oci-containers.containers.metube = lib.mkIf cfg.enable {
|
||||
image = "ghcr.io/alexta69/metube:2024-11-05";
|
||||
ports = [ "${toString cfg.port}:8081" ];
|
||||
|
||||
Reference in New Issue
Block a user