configuration.nix/hosts/rico2/services/frpc.nix

63 lines
1.2 KiB
Nix
Raw Normal View History

2023-07-01 17:45:08 +05:30
{
pkgs,
secrets,
...
}: let
2023-07-11 22:41:18 +05:30
inherit (secrets) frp_config;
2023-05-27 21:12:16 +05:30
in {
2023-10-08 17:46:11 +05:30
services.frp = {
2023-05-27 21:12:16 +05:30
enable = true;
2023-10-08 17:46:11 +05:30
role = "client";
settings = {
"common" = {
server_addr = "${frp_config.ip}";
server_port = 7000;
authentication_method = "token";
token = "${frp_config.token}";
};
2023-05-27 21:12:16 +05:30
2023-10-08 17:46:11 +05:30
"ssh.rico2" = {
type = "tcp";
local_port = 22;
remote_port = 6002;
};
2023-06-02 12:45:51 +05:30
2023-10-08 17:46:11 +05:30
"http.adtya.xyz" = {
type = "http";
custom_domains = "adtya.xyz";
local_port = 80;
};
2023-06-02 12:45:51 +05:30
2023-10-08 17:46:11 +05:30
"https.adtya.xyz" = {
type = "https";
custom_domains = "adtya.xyz";
local_port = 443;
};
2023-06-02 12:45:51 +05:30
2023-10-08 17:46:11 +05:30
"http.www.adtya.xyz" = {
type = "http";
custom_domains = "www.adtya.xyz";
local_port = 80;
};
2023-06-02 12:45:51 +05:30
2023-10-08 17:46:11 +05:30
"https.www.adtya.xyz" = {
type = "https";
custom_domains = "www.adtya.xyz";
local_port = 443;
};
2023-06-02 23:40:36 +05:30
2023-10-28 03:55:59 +05:30
"http.if3.adtya.xyz" = {
type = "http";
custom_domains = "if3.adtya.xyz";
local_port = 80;
};
"https.if3.adtya.xyz" = {
type = "https";
custom_domains = "if3.adtya.xyz";
local_port = 443;
};
2023-10-08 17:46:11 +05:30
};
};
2023-05-27 21:12:16 +05:30
}