configuration.nix/hosts/rico2/services/frpc.nix
2023-10-28 05:13:01 +05:30

26 lines
446 B
Nix

{
pkgs,
secrets,
...
}: let
inherit (secrets) frp_config;
in {
services.frp = {
enable = true;
role = "client";
settings = {
"common" = {
server_addr = "${frp_config.ip}";
server_port = 7000;
authentication_method = "token";
token = "${frp_config.token}";
};
"ssh.rico2" = {
type = "tcp";
local_port = 22;
remote_port = 6002;
};
};
};
}