nixos-config/modules/services/frp.nix

35 lines
568 B
Nix
Raw Normal View History

2025-07-03 15:30:15 +02:00
{
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;
}
];
};
};
}