From 2541614b79106b94b1611e76e7ac6994a2ef1b67 Mon Sep 17 00:00:00 2001 From: Emilis Dambauskas Date: Tue, 1 Dec 2020 03:35:57 +0200 Subject: [PATCH] Updated naming and docs. --- Makefile | 6 +++--- README.md | 10 +++++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 6781484..9f25147 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ CERT_DAYS=10000 -COMMAND="./serve-request.sh" COUNTRY=LT DOMAIN=localhost +SERVE_REQUEST="./serve-request.sh" .PHONY: default @@ -19,14 +19,14 @@ ncat-server: certs ncat \ --listen --keep-open -p 1965 \ --ssl --ssl-cert "certs/${DOMAIN}.crt" --ssl-key "certs/${DOMAIN}.key" \ - --exec ${COMMAND} + --exec ${SERVE_REQUEST} .PHONY: socat-server socat-server: certs socat -d \ OPENSSL-LISTEN:1965,cert=certs/${DOMAIN}.crt,key=certs/${DOMAIN}.key,verify=0,reuseaddr,fork \ - EXEC:${COMMAND} + EXEC:${SERVE_REQUEST} ### Certificates --------------------------------------------------------------- diff --git a/README.md b/README.md index b34a034..6cfe11e 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,12 @@ # Gebase - A Gemini server with Awk scripting +A work in progress. + ## Prerequisites -- Make -- openssl - ncat or socat +- Make +- openssl (if you want to generate certificates) ## Usage @@ -14,7 +16,9 @@ `make socat-server` – Starts a socat server. -Edit _srv/main.awk_ to match your needs. +`make certs DOMAIN=localhost` - Generates the certificate and key files. + +Edit _serve-request.awk_ to match your needs. ## License