Software /
code /
prosody-modules
Annotate
mod_s2s_keepalive/README.md @ 6199:fe8222112cf4
mod_conversejs: Serve base app at /
This makes things slightly less awkward for the browser to figure out which
URLs belong to a PWA. The app's "start URL" was previously without the '/' and
therefore was not considered within the scope of the PWA. Now the canonical
app URL will always have a '/'.
Prosody/mod_http should take care of redirecting existing links without the
trailing / to the new URL.
If you have an installation at https://prosody/conversejs then it is now at
https://prosody/conversejs/ (the first URL will now redirect to the second
URL if you use it).
The alternative would be to make the PWA scope include the parent, i.e.
the whole of https://prosody/ in this case. This might get messy if other
PWAs are provided by the same site or Prosody installation, however.
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 11 Feb 2025 13:18:38 +0000 |
parent | 6053:9b0054873be2 |
rev | line source |
---|---|
1901
392e62f518a5
mod_s2s_keepalive: Add README
Michael Töglhofer <michael@toeglhofer.net>
parents:
diff
changeset
|
1 --- |
6053
9b0054873be2
mod_s2s_keepalive: Update Compability slSection and Label
Menel <menel@snikket.de>
parents:
6003
diff
changeset
|
2 labels: |
9b0054873be2
mod_s2s_keepalive: Update Compability slSection and Label
Menel <menel@snikket.de>
parents:
6003
diff
changeset
|
3 - 'Stage-Beta' |
1901
392e62f518a5
mod_s2s_keepalive: Add README
Michael Töglhofer <michael@toeglhofer.net>
parents:
diff
changeset
|
4 summary: Keepalive s2s connections |
392e62f518a5
mod_s2s_keepalive: Add README
Michael Töglhofer <michael@toeglhofer.net>
parents:
diff
changeset
|
5 ... |
392e62f518a5
mod_s2s_keepalive: Add README
Michael Töglhofer <michael@toeglhofer.net>
parents:
diff
changeset
|
6 |
392e62f518a5
mod_s2s_keepalive: Add README
Michael Töglhofer <michael@toeglhofer.net>
parents:
diff
changeset
|
7 Introduction |
392e62f518a5
mod_s2s_keepalive: Add README
Michael Töglhofer <michael@toeglhofer.net>
parents:
diff
changeset
|
8 ============ |
392e62f518a5
mod_s2s_keepalive: Add README
Michael Töglhofer <michael@toeglhofer.net>
parents:
diff
changeset
|
9 |
6053
9b0054873be2
mod_s2s_keepalive: Update Compability slSection and Label
Menel <menel@snikket.de>
parents:
6003
diff
changeset
|
10 This module periodically sends [XEP-0199] ping requests to remote servers to keep your connection alive. |
1901
392e62f518a5
mod_s2s_keepalive: Add README
Michael Töglhofer <michael@toeglhofer.net>
parents:
diff
changeset
|
11 |
392e62f518a5
mod_s2s_keepalive: Add README
Michael Töglhofer <michael@toeglhofer.net>
parents:
diff
changeset
|
12 Configuration |
392e62f518a5
mod_s2s_keepalive: Add README
Michael Töglhofer <michael@toeglhofer.net>
parents:
diff
changeset
|
13 ============= |
392e62f518a5
mod_s2s_keepalive: Add README
Michael Töglhofer <michael@toeglhofer.net>
parents:
diff
changeset
|
14 |
6053
9b0054873be2
mod_s2s_keepalive: Update Compability slSection and Label
Menel <menel@snikket.de>
parents:
6003
diff
changeset
|
15 Simply add the module to the `modules_enabled` list like any other module. |
9b0054873be2
mod_s2s_keepalive: Update Compability slSection and Label
Menel <menel@snikket.de>
parents:
6003
diff
changeset
|
16 By default, all current s2s connections will be pinged |
9b0054873be2
mod_s2s_keepalive: Update Compability slSection and Label
Menel <menel@snikket.de>
parents:
6003
diff
changeset
|
17 periodically. To ping only a subset of servers, list these in `keepalive_servers`. |
9b0054873be2
mod_s2s_keepalive: Update Compability slSection and Label
Menel <menel@snikket.de>
parents:
6003
diff
changeset
|
18 The ping interval can be set using `keepalive_interval`. |
1901
392e62f518a5
mod_s2s_keepalive: Add README
Michael Töglhofer <michael@toeglhofer.net>
parents:
diff
changeset
|
19 |
6053
9b0054873be2
mod_s2s_keepalive: Update Compability slSection and Label
Menel <menel@snikket.de>
parents:
6003
diff
changeset
|
20 If no response to the ping has been received in about 10 minutes (or `keepalive_timeout` seconds) the s2s connections are closed. |
3768
bfc4d495bf2c
mod_s2s_keepalive: Update README to document timeout behavior
Kim Alvefur <zash@zash.se>
parents:
3767
diff
changeset
|
21 |
2162
f1ea8044f9f8
mod_s2s_keepalive/README: Give language hints to rendering for syntax hilighting
Kim Alvefur <zash@zash.se>
parents:
1902
diff
changeset
|
22 ``` lua |
f1ea8044f9f8
mod_s2s_keepalive/README: Give language hints to rendering for syntax hilighting
Kim Alvefur <zash@zash.se>
parents:
1902
diff
changeset
|
23 modules_enabled = { |
f1ea8044f9f8
mod_s2s_keepalive/README: Give language hints to rendering for syntax hilighting
Kim Alvefur <zash@zash.se>
parents:
1902
diff
changeset
|
24 ... |
f1ea8044f9f8
mod_s2s_keepalive/README: Give language hints to rendering for syntax hilighting
Kim Alvefur <zash@zash.se>
parents:
1902
diff
changeset
|
25 "s2s_keepalive" |
f1ea8044f9f8
mod_s2s_keepalive/README: Give language hints to rendering for syntax hilighting
Kim Alvefur <zash@zash.se>
parents:
1902
diff
changeset
|
26 } |
1901
392e62f518a5
mod_s2s_keepalive: Add README
Michael Töglhofer <michael@toeglhofer.net>
parents:
diff
changeset
|
27 |
2162
f1ea8044f9f8
mod_s2s_keepalive/README: Give language hints to rendering for syntax hilighting
Kim Alvefur <zash@zash.se>
parents:
1902
diff
changeset
|
28 keepalive_servers = { "conference.prosody.im"; "rooms.swift.im" } |
3767
7fe10086e124
mod_s2s_keepalive: Update config example (why was the number a string?)
Kim Alvefur <zash@zash.se>
parents:
3729
diff
changeset
|
29 keepalive_interval = 90 -- (in seconds, default is 60 ) |
3768
bfc4d495bf2c
mod_s2s_keepalive: Update README to document timeout behavior
Kim Alvefur <zash@zash.se>
parents:
3767
diff
changeset
|
30 keepalive_timeout = 300 -- (in seconds, default is 593 ) |
2162
f1ea8044f9f8
mod_s2s_keepalive/README: Give language hints to rendering for syntax hilighting
Kim Alvefur <zash@zash.se>
parents:
1902
diff
changeset
|
31 ``` |
1901
392e62f518a5
mod_s2s_keepalive: Add README
Michael Töglhofer <michael@toeglhofer.net>
parents:
diff
changeset
|
32 |
392e62f518a5
mod_s2s_keepalive: Add README
Michael Töglhofer <michael@toeglhofer.net>
parents:
diff
changeset
|
33 Compatibility |
392e62f518a5
mod_s2s_keepalive: Add README
Michael Töglhofer <michael@toeglhofer.net>
parents:
diff
changeset
|
34 ============= |
392e62f518a5
mod_s2s_keepalive: Add README
Michael Töglhofer <michael@toeglhofer.net>
parents:
diff
changeset
|
35 |
6053
9b0054873be2
mod_s2s_keepalive: Update Compability slSection and Label
Menel <menel@snikket.de>
parents:
6003
diff
changeset
|
36 Prosody Version Status |
9b0054873be2
mod_s2s_keepalive: Update Compability slSection and Label
Menel <menel@snikket.de>
parents:
6003
diff
changeset
|
37 ----------------- ----------- |
9b0054873be2
mod_s2s_keepalive: Update Compability slSection and Label
Menel <menel@snikket.de>
parents:
6003
diff
changeset
|
38 trunk[^1] Works |
9b0054873be2
mod_s2s_keepalive: Update Compability slSection and Label
Menel <menel@snikket.de>
parents:
6003
diff
changeset
|
39 0.12 Works |
9b0054873be2
mod_s2s_keepalive: Update Compability slSection and Label
Menel <menel@snikket.de>
parents:
6003
diff
changeset
|
40 ----------------- ----------- |
9b0054873be2
mod_s2s_keepalive: Update Compability slSection and Label
Menel <menel@snikket.de>
parents:
6003
diff
changeset
|
41 |
9b0054873be2
mod_s2s_keepalive: Update Compability slSection and Label
Menel <menel@snikket.de>
parents:
6003
diff
changeset
|
42 [^1]: as of 2024-11-11 |