config.j2 748 B

1234567891011121314151617181920212223242526
  1. foreground = yes
  2. [{{ item.service }}]
  3. {% if item.client is defined and item.client %}
  4. client = yes
  5. {% endif %}
  6. cert = /etc/stunnel/{{ item.name }}.crt
  7. key = /etc/stunnel/{{ item.name }}.pem
  8. {% if item.client is defined and item.client %}
  9. accept = {{ item.accept }}
  10. {% else %}
  11. accept = :::{{ item.accept }}
  12. {% endif %}
  13. # accept on client = Local Relay Server Port
  14. # accept on server = stunnel server connection to which the client connects
  15. connect = {{ item.connect }}
  16. # connect on client = Endpoint of the stunnel server
  17. # connect on server = Local server to which the stunnel client should connect
  18. securityLevel = 3
  19. sslVersionMin = TLSv1.2
  20. sslVersion = TLSv1.3
  21. requireCert = yes
  22. verifyPeer = yes
  23. CAfile = /etc/stunnel/{{ item.name }}_remote.crt