Add proxy example script. - geomyidae - A small C-based gopherd. HTML git clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/geomyidae/ DIR Log DIR Files DIR Refs DIR Tags DIR README DIR LICENSE --- DIR commit 19f0f8840233b5a0cac3fdb4e251c5a7f29c6c4a DIR parent 418068d8e58c69ef9abf183ac02e942bf5912883 HTML Author: Christoph Lohmann <20h@r-36.net> Date: Sat, 2 Apr 2022 22:51:46 +0200 Add proxy example script. Diffstat: A cgi-examples/proxy.cgi | 14 ++++++++++++++ 1 file changed, 14 insertions(+), 0 deletions(-) --- DIR diff --git a/cgi-examples/proxy.cgi b/cgi-examples/proxy.cgi @@ -0,0 +1,14 @@ +#!/bin/sh +# +# Be sure to make this some index.cgi inside your /scm base dir. +# Then this will mirror /scm on the $proxyhost:$proxyport here. +# + +arguments="${2}" +proxyhost="192.168.4.56" +proxyport="70" +proxybase="/scm" + +# git://bitreich.org/hurl +hurl gopher://$proxyhost:$proxyport/9${proxybase}${arguments} +