ソースを参照

fixed conversejs

dominik 3 年 前
コミット
bd26425a09
3 ファイル変更2 行追加10 行削除
  1. 0 8
      data/conf.d/43-http.yml
  2. 1 1
      data/conf.d/60-modules.yml
  3. 1 1
      entrypoint.sh

+ 0 - 8
data/conf.d/43-http.yml

@@ -12,11 +12,3 @@ listen:
       "/upload": mod_http_upload
       "/ws": ejabberd_http_ws
       "/conversejs": mod_conversejs
-
-  -
-    port: 5280
-    ip: "::"
-    module: ejabberd_http
-    tls: false
-    request_handlers:
-      /websocket: ejabberd_http_ws

+ 1 - 1
data/conf.d/60-modules.yml

@@ -18,7 +18,7 @@ modules:
   mod_client_state: {}
   mod_configure: {} # requires mod_adhoc
   mod_conversejs:
-#    websocket_url: "ws://@HOST@:5280/websocket"
+#    websocket_url: "wss://vc.example.com:5443/ws"
     websocket_url: WS_URL #macro defined in ~/env.yml
 
   ## mod_delegation: {} # for xep0356

+ 1 - 1
entrypoint.sh

@@ -6,7 +6,7 @@ define_macro:
   IRCDOMAIN:
     irc.$HOSTNAME:
        password: $IRCPASS
-  WS_URL: "ws://$HOSTNAME:5280/websocket"
+  WS_URL: "wss://$HOSTNAME:5443/ws"
   ACL_ORIGIN: "https://$HOSTNAME"
   PUT_URL: "https://$HOSTNAME:5443/upload"
 EOF