Added stunnel server example.
This commit is contained in:
parent
6371db1eaf
commit
4afd9ce547
4
Makefile
4
Makefile
|
@ -28,6 +28,10 @@ socat-server: certs
|
|||
EXEC:${SERVE_REQUEST}
|
||||
|
||||
|
||||
.PHONY: stunnel-server
|
||||
stunnel-server: certs
|
||||
stunnel stunnel.conf
|
||||
|
||||
### Certificates ---------------------------------------------------------------
|
||||
|
||||
.PHONY: show-cert
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue