Commit Graph

319 Commits

Author SHA1 Message Date
32b52adebb WIP: store and get relation between rooms and channels 2023-09-22 16:45:03 +02:00
1a1b246d45 refactoring. 2023-09-22 16:45:03 +02:00
d410d4e08e Settings to disable the bot and the advances channel configuration 2023-09-22 16:45:02 +02:00
5373fb1570 Renaming 'moderation' pages to 'configuration'. 2023-09-22 16:45:02 +02:00
d0ba7d017d External Components interface configuration:
You can now configure on which network interfaces Prosody will listen for external components.
2023-09-22 16:45:02 +02:00
7e89e430d0 Moderation configuration screen: store options. 2023-09-22 16:45:02 +02:00
0987a036a0 Moderation configuration screen: WIP. 2023-09-22 16:45:01 +02:00
cb6decfa84 Fix: only local channels. 2023-09-22 16:45:01 +02:00
a25c4822fa Moderation configuration screen: WIP. 2023-09-22 16:45:01 +02:00
02728bb38d Moderation configuration screen: WIP. 2023-09-22 16:45:01 +02:00
64668733c8 Code refactoring:
Splitting API code in several files.
2023-09-07 17:20:01 +02:00
9f8a9ae5ae Fix typo. 2023-08-07 10:19:42 +02:00
609b9e99ec Fix #100: API endpoint enhancement
Bypassing Nginx for API call originated from Prosody (if Peertube >=5.1).
Can also fix some Docker setup, which needed to set the prosody-peertube-uri settings.
2023-08-02 17:08:42 +02:00
f7a32e95d4 Code refactoring:
Cleaning some backend code, for a better readability.
2023-08-01 18:42:24 +02:00
d33795f7a1 Code refactoring WIP:
Cleaning the way ConverseJS parameters are given to the full page.
2023-08-01 17:01:09 +02:00
3fd6b9b563 Links to online documentation:
* Adding a help button on top of the chat, that links to the online documentation on frama.io.
* Replaced github.io documentation links by frama.io documentation.
* Adding links to the documentation in the diagnostic tool.
2023-07-26 18:16:30 +02:00
ad8b71b582 New debug modes for AP/RSS publishing. 2023-07-06 16:39:32 +02:00
995dfa4dff Some refactoring. 2023-07-06 14:10:05 +02:00
e4d6626d6e Remove "room." from from podcast:chat server 2023-07-06 14:10:05 +02:00
97a5d4b408 Initial WIP commit to add <podcast:chat> tag to Podcast RSS feeds 2023-07-06 14:10:05 +02:00
3627ef25f6 FEP-1970: name attribute.
Related to #113.
2023-07-05 12:10:27 +02:00
f7e7cddf72 FEP-1970: implementation WIP:
Adding the data on outgoing objects.

Related to #113.
2023-07-04 18:09:50 +02:00
f73ccbbf7e Localization refactoring:
* the front-end now use global constants, based on the translation key
* build-client.js use the ESBuild "define" directive to replace these
  globals at compile time, by the english value
* build:client must now be called after build:languages
* moving the loadLoc and loc backend functions in a separate lib
2023-06-12 19:36:14 +02:00
89a11cd3d6 Changing the way the translations are handled:
To make the Weblate integration simplier, this commit merge all
translations in yml files (there is no more distinction between
standards and settings strings)

This yml files will be handled by Weblate.

TODO: document the new translation process.
2023-06-09 17:08:39 +02:00
8f66ea4032 Fix #180: Letsencrypt import not working
Letsencrypt certificate import procedure was not working on server that had never installed Prosody.
Adding `prosody_user` in the Prosody configuration file to fix this.
Updating the procedure: the `chown` is no more needed in `/etc/letsencrypt/renewal-hooks/deploy/prosody.sh`.
2023-06-08 10:22:43 +02:00
472caf9f5b Fix: direct s2s connection not always possible
Trying to connect to a remote instance using direct s2s won't work if local instance has not the feature enabled, and if the remote instance does not know the local one.
So using Websocket S2S in such case (that embed a discovery mecanism).
2023-06-01 13:06:59 +02:00
f644ad0d88 Fix #124 (dirty hack):
This commit is a dirty hack to fix issue with ARM64 Prosody AppImage.
The fixed appimagebuild tool is not released by the dev team.
So i patch it in my build script. This is not a good solution, but it
works, and let me go forward.
2023-05-31 18:13:35 +02:00
0185b56cab Some comments. 2023-05-31 17:08:17 +02:00
dbf43ae016 Prosody recommended version is 0.12.x. 2023-05-31 16:52:55 +02:00
743c4eabd9 Chat Federation, avoid spoofing:
When sanitizing remote informations, we check that urls and hosts are on
the correct domain or subdomain.
2023-05-31 16:52:54 +02:00
b3582e6bfa Fix missing self signed certificates is some conditions. 2023-05-31 16:52:53 +02:00
2de38661d6 Websocket S2S: ping every 55s to keep alive. 2023-05-31 16:52:52 +02:00
92d92e3350 Fix: i misunderstood the parameter s2s_close_timeout. And removing a duplicate hook. 2023-05-31 16:52:52 +02:00
efdf01cef2 Fix condition. 2023-05-31 16:52:50 +02:00
2961513d22 Refresh remote server infos when outdated. 2023-05-31 16:52:50 +02:00
e719dc3079 Chat Federation: fetch remote server information when missing. 2023-05-31 16:52:50 +02:00
6ed69d2c2f Chat Federation: refactoring ActivityPub data:
The data format used by plugin v6.3.0 was not well suited.
Here comes a new data format, with S2S informations.
The plugin can automatically upgrade old format.
It also continues to provide the old format, so than remote instance
that did not update the plugin will still work.
2023-05-31 16:52:50 +02:00
b38d9a6426 Cleaning an aborted PoC 2023-05-31 16:52:49 +02:00
8fe48a068f Refactoring the debug mode code, and adding some options. 2023-05-31 16:52:49 +02:00
b525c203da Chat Federation: first working PoC! 2023-05-31 16:52:49 +02:00
5a945a0cb7 Chat Federation WIP:
Found that net.websocket is not appropriate.
This commit is a proof of concept. It has to be cleaned.
Still not working, but close!
2023-05-31 16:52:48 +02:00
9a2da60b7d Chat Federation (and a lot more) WIP:
Note: websocket s2s is not working yet, still WIP.

New Features

* Chat Federation:
  * You can now connect to a remote chat with your local account.
  * This remote connection is done using a custom implementation of [XEP-0468: WebSocket S2S](https://xmpp.org/extensions/xep-0468.html), using some specific discovering method (so that it will work without any DNS configuration).

Minor changes and fixes

* Possibility to debug Prosody in development environments.
* Using process.spawn instead of process.exec to launch Prosody (safer, and more optimal).
* Prosody AppImage: fix path mapping: we only map necessary /etc/ subdir, so that the AppImage can access to /etc/resolv.conf, /etc/hosts, ...
* Prosody AppImage: hidden debug mode to disable lua-unbound, that seems broken in some docker dev environments.
2023-05-31 16:52:47 +02:00
3bc05d88df Chat Federation: using S2S if available.
* if both local and remote instance have external XMPP connections enabled, the user joins the remote room with his local account
* some code refactoring (builtin.ts)

Note: documentation and settings descriptions are to do.

Related to #112
2023-05-31 16:52:47 +02:00
cf0b14d382 Fix import. Seems i am tired... 2023-04-21 19:28:43 +02:00
1a5989d9a9 Fix. 2023-04-21 19:24:55 +02:00
5a4eb7fc33 Fix: wrong usage of URL.protocol, again 2023-04-21 18:57:18 +02:00
4a02f74563 Fix cross domain BOSH. 2023-04-21 18:49:15 +02:00
ba573c1211 Fix protocol detection. 2023-04-21 18:38:43 +02:00
0ce95d4a39 Chat Federation: don't display chat when anonymous connections are disabled 2023-04-21 17:24:16 +02:00
5d323b2dfd Chat Federation, connection to remote chat:
Front-end connect using BOSH or WS directly on the remote server.
If use is logged-in, his nickname is use as default nickname.
2023-04-21 16:56:48 +02:00