|
|
@@ -0,0 +1,19 @@
|
|
|
+ stream {
|
|
|
+ upstream ejabberd_c2s {
|
|
|
+ server 192.168.1.94:5222; # Or ejabberd's IP and port
|
|
|
+ }
|
|
|
+
|
|
|
+ server {
|
|
|
+ listen 5222; # Client-to-server port
|
|
|
+ proxy_pass ejabberd_c2s;
|
|
|
+ proxy_protocol on; # If ejabberd is configured to use Proxy Protocol
|
|
|
+ }
|
|
|
+
|
|
|
+ server {
|
|
|
+ listen 5223 ssl; # Client-to-server TLS port
|
|
|
+ proxy_pass ejabberd_c2s;
|
|
|
+ ssl_certificate $acme_cert_dended;
|
|
|
+ ssl_certificate_key $acme_cert_key_dended;
|
|
|
+ proxy_protocol on; # If ejabberd is configured to use Proxy Protocol
|
|
|
+ }
|
|
|
+ }
|