gopher-proxy: proxy gopher over http

[ gpl, network, program ] [ Propose Tags ]

A simple gopher-over-http proxy to http-ify gopher spaces.


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.1.0.1, 0.1.0.2, 0.1.1.0, 0.1.1.1, 0.1.1.2, 0.1.1.3
Change log ChangeLog.md
Dependencies attoparsec, base (>=4.9 && <4.10), bytestring, directory, errors, http-types, lucid, mime-types, network, optparse-applicative, text, wai, warp [details]
License GPL-3.0-only
Author sternenseemann
Maintainer git@lukasepple.de
Category Network
Home page https://github.com/sternenseemann/gopher-proxy
Bug tracker https://github.com/sternenseemann/gopher-proxy/issues
Source repo head: git clone git://github.com/sternenseemann/gopher-proxy.git
Uploaded by sternenseemann at 2017-01-04T15:19:43Z
Distributions LTSHaskell:0.1.1.3, NixOS:0.1.1.3, Stackage:0.1.1.3
Reverse Dependencies 1 direct, 0 indirect [details]
Executables gopher-proxy
Downloads 4055 total (26 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2017-01-04 [all 3 reports]

Readme for gopher-proxy-0.1.0.1

[back to package description]

gopher-proxy

gopher-proxy is a tiny wai application running on top of warp. It acts as a gopher-over-http proxy for a specific server, e. g. to http-ify a gopher space.

Usage

Example usage:

gopher-proxy --host foo.org --http-port 8080

In this particular example, gopher-proxy would proxy the foo.org gopher server and bind its http service on 127.0.0.1:8080 (to be proxied to by another web server like nginx).

There are these additional flags which allow tweaking of exact behavior as well:

option meaning
--port The port of the gopher server, defaults to 70
--css-url Use some specific css file instead of the default one.
--css-url The http path of the css file, defaults to /gopher-proxy.css (should be changed, if your gopher server has a file with the same name
--base-url The path of the directory which will appear as root directory of gopher-proxy to the user, defaults to /. Should be changed if you configured your proxying web server to expose gopher-proxy as, say /gopher-space/.
--listen-public If this flag is set, gopher-proxy will accept connections on its public IP address(es).
--default-mime-type Mime type to use if spacecookie can't guess it, defaults to "application/octet-stream"
--timeout Timeout when connecting in milliseconds, defaults to 10 seconds.

Things to keep in mind

  • Your gopher server must send UTF-8-encoded gopher menus
  • gopher-proxy might misinterpret certain content, because of the context-sensitive nature of gopher
  • gopher-proxy does not support Gopher+

Roadmap

[ ] Add Logging