Updated naming and docs.
This commit is contained in:
parent
1ad2b9f6c1
commit
2541614b79
6
Makefile
6
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 ---------------------------------------------------------------
|
||||
|
|
10
README.md
10
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue