Added stunnel server example.

This commit is contained in:
Emilis Dambauskas 2020-12-04 00:56:30 +02:00
parent 6371db1eaf
commit 4afd9ce547
2 changed files with 31 additions and 0 deletions

View File

@ -28,6 +28,10 @@ socat-server: certs
EXEC:${SERVE_REQUEST}
.PHONY: stunnel-server
stunnel-server: certs
stunnel stunnel.conf
### Certificates ---------------------------------------------------------------
.PHONY: show-cert

27
stunnel.conf Normal file
View File

@ -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