Commit Graph

98 Commits

Author SHA1 Message Date
6c8b6cad44 Merge branch 'main' of https://github.com/JohnXLivingston/peertube-plugin-livechat 2025-07-23 12:00:33 -04:00
3624dd5c3c Reverting usage of RE2 (WIP):
**Breaking changes**

The livechat v13 introduced a new library to handle regular expressions in forbidden words, to avoid
[ReDOS](https://en.wikipedia.org/wiki/ReDoS) attacks.
Unfortunately, this library was not able to install itself properly on some systems, and some admins were not able
to install the livechat plugin.

That's why we have disabled this library in v14, and introduce a new settings to enable regexp in forbidden words.
By default this settings is disabled, and your users won't be able to use regexp in their forbidden words.

The risk by enabling this feature is that a malicious user could cause a denial of service for the chat bot, by using a
special crafted regular expression in their channel options, and sending a special crafter message in one of their
rooms. If you trust your users (those who have rights to livestream), you can enable the settings. Otherwise it is not
recommanded. See the documentation for more informations.

**Minor changes and fixes**

* Channel's forbidden words: new "enable" column.
* New settings to enable regular expressions for channel forbidden words.
* "Channel advanced configuration" settings: removing the "experimental feature" label.
2025-06-19 17:11:13 +02:00
3503a63a10 Merge branch 'main' of https://github.com/JohnXLivingston/peertube-plugin-livechat 2025-06-15 09:19:36 -04:00
80a5b76172 Updating SPDX headers. 2025-06-09 10:48:43 +02:00
134d94d6fc Merge branch 'main' of https://github.com/JohnXLivingston/peertube-plugin-livechat 2025-05-12 16:50:25 -04:00
88376b82ee Adding a warning in settings if theme is not set to Peertube or if autocolors are disabled. 2025-05-12 15:40:27 +02:00
a4bf37d534 Merge branch 'main' of https://github.com/JohnXLivingston/peertube-plugin-livechat 2024-12-03 17:03:42 -05:00
538ec28da9 Fix typo. 2024-09-12 17:36:48 +02:00
c010758164 eslint 8.57 WIP:
* tweaking rules
* fixing issues
2024-09-09 18:47:21 +02:00
7e0cfee8f1 Merge branch 'main' of https://github.com/JohnXLivingston/peertube-plugin-livechat 2024-09-05 22:17:17 -04:00
0e98cbaba5 ConverseJS upstream update:
* update ConverseJS version
* remove concord theme from settings (and migrate to peertube)
* added cyberpunk theme
* fixed settings localization
2024-09-02 12:11:21 +02:00
8e99199f29 New option to use and configure Prosody mod_firewall WIP (#97):
* new setting
* new configuration screen for Peertube admins
* include the mod_firewall module
* load mod_firewall if enabled
* sys admin can disable the firewall config editing by creating a
  special file on the disk
* user documentation
2024-08-13 10:35:47 +02:00
f8c34213cb maybe fr fr fix it? 2024-08-05 19:46:09 -04:00
cde9b3f74a add options in config 2024-08-05 17:54:22 -04:00
c6c365abf0 Avatar set for anonymous users: new 'none' choice (that will fallback to Converse new colorized avatars). 2024-07-25 15:34:27 +02:00
45a63eaecd Terms&Conditions (#18):
* new settings for instance's terms
* new channel option for channel's terms
2024-06-25 12:21:01 +02:00
8a2d556d4e Replace github documentation link by framagit ones + fix some links 2024-06-19 11:06:11 +02:00
257fdbd2c2 Authentication token generation (#98):
* setting to disable the feature (aka "panic button")
2024-06-17 15:25:02 +02:00
688ab4f029 Custom channel emoticons WIP (#130) 2024-06-07 13:45:04 +02:00
5a14e3f755 New setting to listen C2S connection on non-localhost interfaces (#377). 2024-05-27 16:32:40 +02:00
d5c327565c Adding SPDX headers (WIP) 2024-05-23 11:42:14 +02:00
024186ba2c Adding some standard OpenID Connect providers (Google, Facebook) (WIP):
* refactoring, to allow several OIDC singletons
* settings for google and facebook
* backend code
2024-04-22 13:03:31 +02:00
3d3bb2bd27 OpenID Connect documentation + cleaning. 2024-04-19 11:03:50 +02:00
43d0fba274 Possibility to configure an OpenID Connect provider on the instance level WIP (#128). 2024-04-19 09:58:32 +02:00
669b260307 Possibility to configure an OpenID Connect provider on the instance level WIP (#128). 2024-04-19 09:58:32 +02:00
514cc1d159 Possibility to configure an OpenID Connect provider on the instance level WIP (#128). 2024-04-19 09:58:32 +02:00
c1e877cb44 Refactoring settings registration:
One function by settings "functional section", to have a clearer
initSettings function.
2024-04-19 09:58:31 +02:00
8a400d2d9f New abstract avatars 2024-02-12 16:50:08 +01:00
91ef261c16 Fenec avatars. 2024-02-09 15:35:40 +01:00
fbeffef34b Bird avatars. 2024-02-09 15:12:48 +01:00
9561f36b93 Cats avatars. 2024-02-09 13:17:12 +01:00
70563200fe New avatars:
* new settings to change the avatar set
* user documentation
2024-02-09 12:41:05 +01:00
d80cedfee5 Auto ban anonymous IP:
* New settings: "Ban anonymous user's IP when user is banned from a chatroom":
  * if enabled, every time a streamer bans an anonymous user, it will ban its IP on the chat server,
  * banned IPs are logged on disk, so server's admin can use them to feed fail2ban (for example),
  * option disabled by default, because could be used to create trapped-rooms on public servers
2023-09-22 18:17:54 +02:00
f97e54d499 Moderation Bot integration WIP:
* Start and stop the bot WIP
* Prosody: removing the BOSH module from the global scope (must only be present on relevant virtualhosts)
* Some refactoring
2023-09-22 16:45:06 +02:00
260a25f411 Updating room-channel when prosody-room-type is changed 2023-09-22 16:45:05 +02:00
d410d4e08e Settings to disable the bot and the advances channel 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
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
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
01e7fdc9b6 Chat federation: new settings to disable the feature. 2023-04-20 12:13:22 +02:00
801798852c Prosody: new settings to provide a custom certificates dir 2023-04-14 11:33:41 +02:00
4a28991497 XMPP client connection WIP:
Adding an option in the «share chat» dialog to display the XMPP room
address.
2023-04-14 11:33:41 +02:00
4d9d9d39b0 XMPP clients connections WIP:
* new option to allow external xmpp account s2s connections
* settings to setup the port and network interfaces
* documentation WIP

Related to issue #114
2023-04-14 11:33:41 +02:00
9d18e401a7 Implements #153: Settings translations (#155)
Implementing a new translating system, so we can more easily translate
settings strings. Indeed, these strings are difficult to embed in
JSON format.

We still use JSON files for standard strings, but in addition we have
dedicated YAML files to translate settings strings.

There is a new build-languages.js script that merge all translations in JSON files.

Other modifications:
* Eslint: ignoring documentation and build scripts.
* french settings translations.
2023-02-15 11:54:48 +01:00
2950fdeddf link to the new documentation. 2023-02-13 18:03:23 +01:00
ed3f236120 Prosody Appimage: supports only x86_64:
* stop trying to generated an ARM64 AppImage (as it is buggy)
* display a warning in the settings if incompatible CPU detected
* documentation for a workaround

Implements #120.
2022-12-12 19:17:43 +01:00
ae5860e537 Implements #123: «disable websocket» settings». 2022-12-08 11:25:57 +01:00
187d8be87f Documentation update + remove docker build:
* Update documentation and removed deprecated parts
* removed Docker image build files, as it is no more needed
2022-11-15 18:04:51 +01:00
3ba64d3732 Re-ordering the settings page. 2022-11-15 17:19:49 +01:00