~ols/cramp

Use shiroi readability and add page title
933cb02b — Oliver Leaver-Smith 3 years ago
Add support for non-text mime types
eebe501f — Oliver Leaver-Smith 3 years ago
Initial commit

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~ols/cramp
read/write
git@git.sr.ht:~ols/cramp

You can also use your local clone with git send-email.

#cramp

#A web=>gemini proxy that does a half-decent job of converting web pages to Gemtext

You can see an demo of this running by pointing your Gemini browser at gemini://ols.wtf:5555

Alternatively, you can view this page through the proxy by clicking here... how meta!

#Generate some TLS certificates in any manner you like, e.g.

openssl ecparam -genkey -name prime256v1 -out server.key
openssl req -new -x509 -key server.key -out server.pem -days 3650

#Set the following environment variables

  • PORT: port on which the server will run (defaults to 1965)
  • CRAMP_ROOT: the root at which you will be running the server, e.g. gemini://cramp.demo/ (defaults to gemini://localhost/)

You can then run with go run cramp.go

#//TODO

[] Add better^H^H^H^H^H^H logging

Do not follow this link