tAdd proxy example script. - geomyidae - A small C-based gopherd. (gopher://bitreich.org/1/scm/geomyidae)
git clone git://r-36.net/geomyidae
Log
Files
Refs
README
LICENSE
---
commit 19f0f8840233b5a0cac3fdb4e251c5a7f29c6c4a
parent 418068d8e58c69ef9abf183ac02e942bf5912883
Author: Christoph Lohmann <20h@r-36.net>
Date:   Sat,  2 Apr 2022 22:51:46 +0200

Add proxy example script.

Diffstat:
  cgi-examples/proxy.cgi              |      14 ++++++++++++++

1 file changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/cgi-examples/proxy.cgi b/cgi-examples/proxy.cgi
t@@ -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}
+