From f938e1ac056804e432c01a8cb0873de90d4d7c70 Mon Sep 17 00:00:00 2001 From: Konstantin Astafurov Date: Fri, 25 Aug 2023 19:01:29 -0400 Subject: [PATCH] ssl-proxy: init at 0.2.7 Ssl-proxy is a reverse proxy that makes it easy to put up and sign ssl certificates. Homepage: https://github.com/suyashkumar/ssl-proxy --- pkgs/tools/networking/ssl-proxy/default.nix | 31 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/tools/networking/ssl-proxy/default.nix diff --git a/pkgs/tools/networking/ssl-proxy/default.nix b/pkgs/tools/networking/ssl-proxy/default.nix new file mode 100644 index 000000000000..1aac650885b6 --- /dev/null +++ b/pkgs/tools/networking/ssl-proxy/default.nix @@ -0,0 +1,31 @@ +{ lib, buildGo118Module, fetchFromGitHub }: + +buildGo118Module rec { + pname = "ssl-proxy"; + version = "0.2.7"; + + src = fetchFromGitHub { + owner = "suyashkumar"; + repo = "ssl-proxy"; + rev = "v${version}"; + hash = "sha256-c9BLdDlkrg1z1QrO+vEAVyPtrV/nQcYlGXFmwfAOSpQ="; + }; + + vendorHash = "sha256-310K9ZSxy/OQ4HYFCcHQaj4NQwzATrOZ2YkhiSkhY5I="; + + checkTarget = "test"; + + meta = with lib; { + homepage = "https://github.com/suyashkumar/ssl-proxy"; + description = "Simple single-command SSL reverse proxy with autogenerated certificates (LetsEncrypt, self-signed)"; + longDescription = '' + A handy and simple way to add SSL to your thing running on a VM--be it your personal jupyter + notebook or your team jenkins instance. ssl-proxy autogenerates SSL certs and proxies + HTTPS traffic to an existing HTTP server in a single command. + ''; + license = licenses.mit; + mainProgram = "ssl-proxy"; + maintainers = [ maintainers.konst-aa ]; + platforms = platforms.linux ++ platforms.darwin ++ platforms.windows ; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 1cb9c464e1eb..a74987323a14 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -42172,4 +42172,6 @@ with pkgs; wpm = callPackage ../applications/misc/wpm { }; yazi = callPackage ../applications/file-managers/yazi { inherit (darwin.apple_sdk.frameworks) Foundation; }; + + ssl-proxy = callPackage ../tools/networking/ssl-proxy { }; }