2024-01-04 21:51:12 +05:30
|
|
|
{ secrets, ... }:
|
2023-11-04 16:12:45 +05:30
|
|
|
let
|
2023-08-15 13:06:06 +05:30
|
|
|
inherit (secrets) frp_config;
|
2023-11-04 16:12:45 +05:30
|
|
|
in
|
|
|
|
{
|
2023-10-08 17:46:11 +05:30
|
|
|
services.frp = {
|
2023-08-15 13:06:06 +05:30
|
|
|
enable = true;
|
2023-10-08 17:46:11 +05:30
|
|
|
role = "client";
|
|
|
|
settings = {
|
|
|
|
common = {
|
2024-01-04 21:51:12 +05:30
|
|
|
server_addr = frp_config.ip;
|
2023-10-08 17:46:11 +05:30
|
|
|
server_port = 7000;
|
|
|
|
authentication_method = "token";
|
2024-01-04 21:51:12 +05:30
|
|
|
token = frp_config.token;
|
2023-10-08 17:46:11 +05:30
|
|
|
};
|
2023-08-15 13:06:06 +05:30
|
|
|
|
2023-10-08 17:46:11 +05:30
|
|
|
"ssh.rico1" = {
|
|
|
|
type = "tcp";
|
|
|
|
local_port = 22;
|
|
|
|
remote_port = 6001;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2023-08-15 13:06:06 +05:30
|
|
|
}
|