feat: adds frp

This commit is contained in:
Ahwx 2025-07-03 15:30:15 +02:00
parent d7602d1f39
commit 12039dfbc0

34
modules/services/frp.nix Normal file
View file

@ -0,0 +1,34 @@
{
pkgs,
config,
lib,
...
}:
{
services.frp = {
enable = true;
role = "client";
settings = {
serverAddr = "";
serverPort = 7000;
auth.method = "token";
auth.token = "";
proxies = [
{
name = "http";
type = "tcp";
localIP = "localhost";
localPort = 80;
remotePort = 80;
}
{
name = "https";
type = "tcp";
localIP = "localhost";
localPort = 443;
remotePort = 443;
}
];
};
};
}