diff mod_conversejs/README.markdown @ 4147:3a06dea21ea1

mod_conversejs: Enable serving resources from built-in http server This enables using release archives or locally built Converse.js
author Kim Alvefur <zash@zash.se>
date Sun, 20 Sep 2020 17:06:00 +0200
parents cacd753848b2
children 7678b4880719
line wrap: on
line diff
--- a/mod_conversejs/README.markdown	Sun Sep 20 15:57:04 2020 +0100
+++ b/mod_conversejs/README.markdown	Sun Sep 20 17:06:00 2020 +0200
@@ -91,11 +91,21 @@
 `mod_bosh` and/or `mod_websocket` are automatically enabled if available
 and the respective endpoint is included in the generated options.
 
-Loading resources
------------------
+## Loading resources
+
+By default the module will load the main script and CSS from
+cdn.conversejs.org. For privacy or performance reasons you may want to
+load the scripts from somewhere else.
 
-By default the module will load the main script and CSS from cdn.conversejs.org. For privacy or performance
-reasons you may want to load the scripts from somewhere else, simply use the conversejs_cdn option:
+To use a local distribution or build of Converse.js set
+conversejs_resources to the local path of "dist" directory:
+
+``` {.lua}
+conversejs_resources = "/usr/src/conversejs/dist";
+```
+
+To use a different web server or CDN simply use the conversejs_cdn
+option:
 
 ``` {.lua}
 conversejs_cdn = "https://cdn.example.com"