1
0
Fork 0
mirror of https://git.kaidan.im/lnj/ansible-role-ejabberd synced 2020-03-25 15:46:19 +01:00
ansible-role-ejabberd/templates/sslh.cfg.j2
2018-11-25 19:43:29 +01:00

27 lines
636 B
Django/Jinja

verbose: false;
foreground: false;
inetd: false;
numeric: false;
transparent: false;
timeout: 2;
user: "nobody";
pidfile: "/var/run/sslh/sslh.pid";
listen:
(
{ host: "0.0.0.0"; port: "443"; }
);
protocols:
(
# XMPPS to port 5223
{ name: "tls"; host: "localhost"; port: "5223"; alpn_protocols: [ "xmpp-client" ]; },
# HTTP File Upload & ejabberd admin interface via. nginx on port 8080
{ name: "tls"; host: "localhost"; port: "8080"; },
# normal XMPP to 5222
{ name: "xmpp"; host: "localhost"; port: "5222"; },
# fallback
{ name: "timeout"; host: "localhost"; port: "8080"; }
);
on-timeout: "timeout";