~benvh/ksc

gemini server and proxy
b232591b — benvh_ 9 months ago
Removed custom replace line from go.mod
9b31fe0a — benvh_ 9 months ago
use handlers provided by gomini
f59e4725 — benvh_ 9 months ago
Added per vhost cert/key pair configuration

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~benvh/ksc
read/write
git@git.sr.ht:~benvh/ksc

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

#KSC

Gemini protocol server / proxy implementation using gomini

#Example config

---
listen: "0.0.0.0:1965"
cert: "./test-cert.pem"
key: "./test-key.pem"
vhosts:
  - hostname: 'some.site'
    cert: './some-site.cert.pem'
    key: './some-site.key.pem'
    locations:
      - pattern: "^/"
        serve: "./resources/some.site/"

      - pattern: "^/api-script"
        content_type: "text/plain"
        run: "./resources/api-script.sh"

      - pattern: "^/proxy-something/for/me/?"
        proxy: "gemini://mozz.us/journal/2019-08-24_questions_on_input.gmi"
        identity: "1e:f9:2b:e7:02:be:55:8e:ec:ef:c2:96:67:57:c6:56:c9:25:f5:3e:ef:be:e2:c5:0d:77:13:06:89:ff:d1:3c"
        strip_path: true

  - hostname: "other.site"
    locations:
      - pattern: "^/"
        serve: "./resources/other.site/"