Comparison

mod_jsxc/README.md @ 6209:d611ed13df7e draft

Merge
author Trần H. Trung <xmpp:trần.h.trung@trung.fun>
date Tue, 18 Mar 2025 00:16:25 +0700
parent 5167:mod_jsxc/README.markdown@272a8e54f0c8
comparison
equal deleted inserted replaced
6208:e20901443eae 6209:d611ed13df7e
1 ---
2 rockspec:
3 build:
4 copy_directories:
5 - templates
6 dependencies:
7 - mod_http_libjs
8 summary: JSXC demo
9 ---
10
11 Try out JSXC easily by serving it from Prosodys built-in HTTP server.
12
13 Uses [mod_http_libjs] to serve jQuery, on Debian you can `apt install
14 libjs-jquery`.
15
16 # Configuration
17
18 mod_jsxc can be set up to either use resources from a separate HTTP
19 server or serve resources from Prosody's built-in HTTP server.
20
21 ## Using CDN
22
23 `jsxc_cdn`
24 : String. Base URL where JSXC resources are served from. Defaults to
25 empty string.
26
27 `jsxc_version`
28 : String. Concatenated with the CDN URL. Defaults to empty string.
29
30 ## Local resources
31
32 Download a JSXC release archive and unpack it somewhere on your server.
33
34 `jsxc_resources`
35 : String. Path to the `dist` directory containing JSXC resources on
36 the local file system. Disabled by default.
37
38 ## Other options
39
40 `jquery_url`
41 : String. URL or relative path to jQuery. Defaults to
42 `"/share/jquery/jquery.min.js"` which will work with
43 [mod_http_libjs].