Quellcode durchsuchen

moved http listener to separate file

Dominik vor 2 Jahren
Ursprung
Commit
70e9a9b6ad

+ 35 - 0
EXTRAS/example-configurations/conf.d/43-http.yml

@@ -0,0 +1,35 @@
+listen:
+  -
+    # c2s via starttls
+    port: 5222
+    ip: "::" #listen to v4 and v6
+    module: ejabberd_c2s
+    starttls_required: true
+    max_stanza_size: 262144
+    shaper: c2s_shaper
+    access: c2s
+
+  -
+    # c2s via tls
+    port: 5223
+    ip: "::" #listen to v4 and v6
+    module: ejabberd_c2s
+    tls: true
+    max_stanza_size: 262144
+    shaper: c2s_shaper
+    access: c2s
+
+
+  -
+    port: 5443
+    ip: "::" #listen to v4 and v6
+    module: ejabberd_http
+    tls: true
+    ciphers: 'TLS_CIPHERS'
+    protocol_options: 'TLS_OPTIONS'
+    request_handlers:
+      "/bosh": mod_bosh
+      "/captcha": ejabberd_captcha
+      "/upload": mod_http_upload
+      "/ws": ejabberd_http_ws
+

+ 0 - 22
EXTRAS/example-configurations/ejabberd.yml

@@ -17,28 +17,6 @@ include_config_file:
   - /home/ejabberd/conf/conf.d/42-c2s.yml
   - /home/ejabberd/conf/conf.d/50-stun-turn.yml
 
-listen:
-  -
-    port: 5443
-    ip: "::"
-    module: ejabberd_http
-    tls: true
-    request_handlers:
-#      "/admin": ejabberd_web_admin
-#      "/api": mod_http_api
-      "/bosh": mod_bosh
-#      "/captcha": ejabberd_captcha
-      "/upload": mod_http_upload
-      "/ws": ejabberd_http_ws
-#      "/oauth": ejabberd_oauth
-  -
-    port: 5280
-    ip: "::"
-    module: ejabberd_http
-    request_handlers:
-      "/admin": ejabberd_web_admin
- 
-
 
 acl:
   local: