Difference between revisions of "Tech pages/XEP-0368"

Jump to navigation Jump to search
44 bytes added ,  15:21, 7 November 2017
no edit summary
Line 1: Line 1:
Here is a sample sslh.conf to support XEP-0368 among other things:
Here is a sample sslh.conf to support [https://xmpp.org/extensions/xep-0368.html XEP-0368] among other things:


  <nowiki>
  <nowiki>
Line 29: Line 29:
(
(
     { name: "tls";    host: "127.0.0.1"; port: "442";  alpn_protocols: [ "h2", "http/1.1" ]; },                # https/nginx most common case
     { name: "tls";    host: "127.0.0.1"; port: "442";  alpn_protocols: [ "h2", "http/1.1" ]; },                # https/nginx most common case
     { name: "tls";    host: "127.0.0.1"; port: "5223"; alpn_protocols: [ "xmpp-client" ]; },                    # check for xep-0368 xmpp tls
     { name: "tls";    host: "127.0.0.1"; port: "5223"; alpn_protocols: [ "xmpp-client" ]; },                    # check for XEP-0368 xmpp tls
     { name: "tls";    host: "127.0.0.1"; port: "442";  sni_hostnames:  [ "www.example.org", "example.org" ]; }, # specific hostnames go to nginx
     { name: "tls";    host: "127.0.0.1"; port: "442";  sni_hostnames:  [ "www.example.org", "example.org" ]; }, # specific hostnames go to nginx
     { name: "tls";    host: "127.0.0.1"; port: "994";  sni_hostnames:  [ "imap.example.org" ]; },              # other hostnames go to dovecot
     { name: "tls";    host: "127.0.0.1"; port: "994";  sni_hostnames:  [ "imap.example.org" ]; },              # other hostnames go to dovecot

Navigation menu