Software /
code /
prosody-modules
Comparison
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 |
parent | 3958:cacd753848b2 |
child | 4166:7678b4880719 |
comparison
equal
deleted
inserted
replaced
4146:bebc5740fc16 | 4147:3a06dea21ea1 |
---|---|
89 - `websocket_url` | 89 - `websocket_url` |
90 | 90 |
91 `mod_bosh` and/or `mod_websocket` are automatically enabled if available | 91 `mod_bosh` and/or `mod_websocket` are automatically enabled if available |
92 and the respective endpoint is included in the generated options. | 92 and the respective endpoint is included in the generated options. |
93 | 93 |
94 Loading resources | 94 ## Loading resources |
95 ----------------- | |
96 | 95 |
97 By default the module will load the main script and CSS from cdn.conversejs.org. For privacy or performance | 96 By default the module will load the main script and CSS from |
98 reasons you may want to load the scripts from somewhere else, simply use the conversejs_cdn option: | 97 cdn.conversejs.org. For privacy or performance reasons you may want to |
98 load the scripts from somewhere else. | |
99 | |
100 To use a local distribution or build of Converse.js set | |
101 conversejs_resources to the local path of "dist" directory: | |
102 | |
103 ``` {.lua} | |
104 conversejs_resources = "/usr/src/conversejs/dist"; | |
105 ``` | |
106 | |
107 To use a different web server or CDN simply use the conversejs_cdn | |
108 option: | |
99 | 109 |
100 ``` {.lua} | 110 ``` {.lua} |
101 conversejs_cdn = "https://cdn.example.com" | 111 conversejs_cdn = "https://cdn.example.com" |
102 ``` | 112 ``` |
103 | 113 |