Просмотр исходного кода

Добавлен конфиг для xmpp

Denis V. Dedkov 6 месяцев назад
Родитель
Сommit
83049451fd
1 измененных файлов с 19 добавлено и 0 удалено
  1. 19 0
      stream.d/xmmp.dended.ru.conf

+ 19 - 0
stream.d/xmmp.dended.ru.conf

@@ -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
+        }
+    }