Add proxy example script. - geomyidae - A small C-based gopherd.
git clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/geomyidae/
Log
Files
Refs
Tags
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:
  A cgi-examples/proxy.cgi              |      14 ++++++++++++++

1 file changed, 14 insertions(+), 0 deletions(-)
---
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}
+