configuration.nix/hosts/rico1/services/frpc.nix
2024-01-04 21:51:12 +05:30

24 lines
422 B
Nix

{ 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.rico1" = {
type = "tcp";
local_port = 22;
remote_port = 6001;
};
};
};
}