stunnel.conf 999 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. ; ==== stunnel configuration for https to http forwarding ====
  2. ; Certificate/key is needed in server mode and optional in client mode
  3. cert = /etc/stunnel/stunnel.pem
  4. ; since private key and certificate are in one file, we don't need
  5. ; to specify the key file. Since we do not use authentication with
  6. ; client certs, we don't need the CA certificate for verification.
  7. key = /etc/stunnel/stunnel.key
  8. ;CAfile = /home/stunnel/etc/stunnel/cacert.pem
  9. ; Some security enhancements for UNIX systems - comment them out on Win32
  10. ;chroot = /home/stunnel/var/lib/stunnel/
  11. ;setuid = nobody
  12. ;setgid = nogroup
  13. ; PID is created inside chroot jail
  14. pid = /var/run/stunnel.pid
  15. ; Some performance tunings
  16. socket = l:TCP_NODELAY=1
  17. socket = r:TCP_NODELAY=1
  18. ;compression = rle
  19. ; Some debugging stuff useful for troubleshooting
  20. ;debug = 7
  21. ;output = stunnel.log
  22. ; Use it for client mode
  23. ;client = yes
  24. ; Service-level configuration
  25. [https]
  26. accept = 443
  27. connect = 80
  28. TIMEOUTclose = 0
  29. ; ==== end of stunnel.conf ====