1{ lib, buildGo118Module, fetchFromGitHub }:
2
3buildGo118Module rec {
4 pname = "ssl-proxy";
5 version = "0.2.7";
6
7 src = fetchFromGitHub {
8 owner = "suyashkumar";
9 repo = "ssl-proxy";
10 rev = "v${version}";
11 hash = "sha256-c9BLdDlkrg1z1QrO+vEAVyPtrV/nQcYlGXFmwfAOSpQ=";
12 };
13
14 vendorHash = "sha256-310K9ZSxy/OQ4HYFCcHQaj4NQwzATrOZ2YkhiSkhY5I=";
15
16 checkTarget = "test";
17
18 meta = with lib; {
19 homepage = "https://github.com/suyashkumar/ssl-proxy";
20 description = "Simple single-command SSL reverse proxy with autogenerated certificates (LetsEncrypt, self-signed)";
21 longDescription = ''
22 A handy and simple way to add SSL to your thing running on a VM--be it your personal jupyter
23 notebook or your team jenkins instance. ssl-proxy autogenerates SSL certs and proxies
24 HTTPS traffic to an existing HTTP server in a single command.
25 '';
26 license = licenses.mit;
27 mainProgram = "ssl-proxy";
28 maintainers = [ maintainers.konst-aa ];
29 platforms = platforms.linux ++ platforms.darwin ++ platforms.windows ;
30 };
31}