2024-01-04 21:51:16 +05:30
|
|
|
{ secrets, ... }: {
|
2024-01-04 21:51:15 +05:30
|
|
|
services.frp = {
|
|
|
|
enable = true;
|
|
|
|
role = "client";
|
|
|
|
settings = {
|
|
|
|
"common" = {
|
2024-01-04 21:51:16 +05:30
|
|
|
inherit (secrets.frp_config) server_addr token;
|
2024-01-04 21:51:15 +05:30
|
|
|
server_port = 7000;
|
|
|
|
authentication_method = "token";
|
|
|
|
};
|
|
|
|
|
|
|
|
"ssh.rico0" = {
|
|
|
|
type = "tcp";
|
|
|
|
local_port = 22;
|
|
|
|
remote_port = 6000;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|