properly refactored flame
This commit is contained in:
@@ -11,10 +11,6 @@ in
|
||||
flameSecret = setup.mkOptions "flameSecret" "qampqwn4wprhqny8h8zj" 5007;
|
||||
};
|
||||
config = lib.mkIf enable {
|
||||
networking.firewall.allowedTCPPorts = lib.mkIf (!cfg.isLocal || !cfgS.isLocal) [
|
||||
cfg.port
|
||||
cfgS.port
|
||||
];
|
||||
sops.secrets = {
|
||||
flame.sopsFile = ../../secrets/env.yaml;
|
||||
};
|
||||
@@ -47,9 +43,5 @@ in
|
||||
};
|
||||
};
|
||||
};
|
||||
services.nginx.virtualHosts = lib.mkIf enable {
|
||||
"${cfg.host}" = lib.mkIf cfg.enableProxy (setup.proxyReverse cfg);
|
||||
"${cfgS.host}" = lib.mkIf cfgS.enableProxy (setup.proxyReverse cfgS);
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user