From 4afd9ce54767a3367bf5ed4ad177564c015dc0bf Mon Sep 17 00:00:00 2001 From: Emilis Dambauskas Date: Fri, 4 Dec 2020 00:56:30 +0200 Subject: [PATCH] Added stunnel server example. --- Makefile | 4 ++++ stunnel.conf | 27 +++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 stunnel.conf diff --git a/Makefile b/Makefile index a5ad917..f8a59ad 100644 --- a/Makefile +++ b/Makefile @@ -28,6 +28,10 @@ socat-server: certs EXEC:${SERVE_REQUEST} +.PHONY: stunnel-server +stunnel-server: certs + stunnel stunnel.conf + ### Certificates --------------------------------------------------------------- .PHONY: show-cert diff --git a/stunnel.conf b/stunnel.conf new file mode 100644 index 0000000..5868b60 --- /dev/null +++ b/stunnel.conf @@ -0,0 +1,27 @@ +debug = info +foreground = yes +output = /dev/stdout +pid = ./stunnel.pid +service = gebase_stunnel + +[gemini] + +accept = 1965 +cert = certs/localhost.crt +key = certs/localhost.key +exec = ./serve-request.sh + +[localhost] + +sni = gemini:localhost +cert = certs/localhost.crt +key = certs/localhost.key +exec = ./serve-request.sh + +; Domain support example: +; [example.org] +; +; sni = gemini:example.org +; cert = certs/example.org.crt +; key = certs/example.org.key +; exec = ./serve-request.sh