diff --git a/global/utils.nix b/global/utils.nix index 4981e97..d89af09 100644 --- a/global/utils.nix +++ b/global/utils.nix @@ -84,4 +84,16 @@ systemd.services."${backend}-mc-${name}".serviceConfig.TimeoutSec = "300"; }; + + mkFrpPassthrough = name: port: { + services.frp.settings.proxies = [ + { + inherit name; + type = "tcp"; + localIp = "localhost"; + localPort = port; + remotePort = port; + } + ]; + }; }