Updated naming and docs.

This commit is contained in:
Emilis Dambauskas 2020-12-01 03:35:57 +02:00
parent 1ad2b9f6c1
commit 2541614b79
2 changed files with 10 additions and 6 deletions

View File

@ -1,7 +1,7 @@
CERT_DAYS=10000 CERT_DAYS=10000
COMMAND="./serve-request.sh"
COUNTRY=LT COUNTRY=LT
DOMAIN=localhost DOMAIN=localhost
SERVE_REQUEST="./serve-request.sh"
.PHONY: default .PHONY: default
@ -19,14 +19,14 @@ ncat-server: certs
ncat \ ncat \
--listen --keep-open -p 1965 \ --listen --keep-open -p 1965 \
--ssl --ssl-cert "certs/${DOMAIN}.crt" --ssl-key "certs/${DOMAIN}.key" \ --ssl --ssl-cert "certs/${DOMAIN}.crt" --ssl-key "certs/${DOMAIN}.key" \
--exec ${COMMAND} --exec ${SERVE_REQUEST}
.PHONY: socat-server .PHONY: socat-server
socat-server: certs socat-server: certs
socat -d \ socat -d \
OPENSSL-LISTEN:1965,cert=certs/${DOMAIN}.crt,key=certs/${DOMAIN}.key,verify=0,reuseaddr,fork \ OPENSSL-LISTEN:1965,cert=certs/${DOMAIN}.crt,key=certs/${DOMAIN}.key,verify=0,reuseaddr,fork \
EXEC:${COMMAND} EXEC:${SERVE_REQUEST}
### Certificates --------------------------------------------------------------- ### Certificates ---------------------------------------------------------------

View File

@ -1,10 +1,12 @@
# Gebase - A Gemini server with Awk scripting # Gebase - A Gemini server with Awk scripting
A work in progress.
## Prerequisites ## Prerequisites
- Make
- openssl
- ncat or socat - ncat or socat
- Make
- openssl (if you want to generate certificates)
## Usage ## Usage
@ -14,7 +16,9 @@
`make socat-server` Starts a socat server. `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 ## License