504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
36 lines
1,004 B
Nix
36 lines
1,004 B
Nix
{ buildGoModule, lib, fetchFromGitHub, nixosTests }:
|
|
|
|
buildGoModule rec {
|
|
pname = "frp";
|
|
version = "0.53.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fatedier";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-/z/pZgB4PepJXXjOBuuq1wHXI2pn/KCxY9cdfANdWGQ=";
|
|
};
|
|
|
|
vendorHash = "sha256-mcgHbwdqcIu4BceuQg+Es0dsIpWG0bsIpd056IOxuiY=";
|
|
|
|
doCheck = false;
|
|
|
|
subPackages = [ "cmd/frpc" "cmd/frps" ];
|
|
|
|
passthru.tests = {
|
|
frp = nixosTests.frp;
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Fast reverse proxy";
|
|
longDescription = ''
|
|
frp is a fast reverse proxy to help you expose a local server behind a
|
|
NAT or firewall to the Internet. As of now, it supports TCP and UDP, as
|
|
well as HTTP and HTTPS protocols, where requests can be forwarded to
|
|
internal services by domain name. frp also has a P2P connect mode.
|
|
'';
|
|
homepage = "https://github.com/fatedier/frp";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ Br1ght0ne ];
|
|
};
|
|
}
|