feat(utils): add mkFrpPassthrough
This commit is contained in:
parent
50a4954704
commit
4f3ff236a4
1 changed files with 12 additions and 0 deletions
|
@ -84,4 +84,16 @@
|
||||||
|
|
||||||
systemd.services."${backend}-mc-${name}".serviceConfig.TimeoutSec = "300";
|
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;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue