diff --git a/modules/services/frp.nix b/modules/services/frp.nix new file mode 100644 index 0000000..5083b89 --- /dev/null +++ b/modules/services/frp.nix @@ -0,0 +1,34 @@ +{ + pkgs, + config, + lib, + ... +}: +{ + services.frp = { + enable = true; + role = "client"; + settings = { + serverAddr = ""; + serverPort = 7000; + auth.method = "token"; + auth.token = ""; + proxies = [ + { + name = "http"; + type = "tcp"; + localIP = "localhost"; + localPort = 80; + remotePort = 80; + } + { + name = "https"; + type = "tcp"; + localIP = "localhost"; + localPort = 443; + remotePort = 443; + } + ]; + }; + }; +}