Commit Graph

382 Commits

Author SHA1 Message Date
John Livingston 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
John Livingston 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
John Livingston 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
John Livingston 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
John Livingston 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
John Livingston 0185b56cab
Some comments. 2023-05-31 17:08:17 +02:00
John Livingston dbf43ae016
Prosody recommended version is 0.12.x. 2023-05-31 16:52:55 +02:00
John Livingston 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
John Livingston b3582e6bfa
Fix missing self signed certificates is some conditions. 2023-05-31 16:52:53 +02:00
John Livingston 2de38661d6
Websocket S2S: ping every 55s to keep alive. 2023-05-31 16:52:52 +02:00
John Livingston 92d92e3350
Fix: i misunderstood the parameter s2s_close_timeout. And removing a duplicate hook. 2023-05-31 16:52:52 +02:00
John Livingston efdf01cef2
Fix condition. 2023-05-31 16:52:50 +02:00
John Livingston 2961513d22
Refresh remote server infos when outdated. 2023-05-31 16:52:50 +02:00
John Livingston e719dc3079
Chat Federation: fetch remote server information when missing. 2023-05-31 16:52:50 +02:00
John Livingston 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
John Livingston b38d9a6426
Cleaning an aborted PoC 2023-05-31 16:52:49 +02:00
John Livingston 8fe48a068f
Refactoring the debug mode code, and adding some options. 2023-05-31 16:52:49 +02:00
John Livingston b525c203da
Chat Federation: first working PoC! 2023-05-31 16:52:49 +02:00
John Livingston 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
John Livingston 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
John Livingston 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
John Livingston cf0b14d382
Fix import. Seems i am tired... 2023-04-21 19:28:43 +02:00
John Livingston 1a5989d9a9
Fix. 2023-04-21 19:24:55 +02:00
John Livingston 5a4eb7fc33
Fix: wrong usage of URL.protocol, again 2023-04-21 18:57:18 +02:00
John Livingston 4a02f74563
Fix cross domain BOSH. 2023-04-21 18:49:15 +02:00
John Livingston ba573c1211
Fix protocol detection. 2023-04-21 18:38:43 +02:00
John Livingston 0ce95d4a39
Chat Federation: don't display chat when anonymous connections are disabled 2023-04-21 17:24:16 +02:00
John Livingston 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
John Livingston b85a1dc90a
Fix: wrong usage of URL.protocol 2023-04-21 16:33:17 +02:00
John Livingston 732138e745
Chat Federation: some data caching to reduce disk load. 2023-04-21 12:25:00 +02:00
John Livingston 333590defd
Chat Federation: send the information to the frontend. 2023-04-21 12:02:52 +02:00
John Livingston b1f1271389
Fix missing case. 2023-04-20 18:32:13 +02:00
John Livingston 5028d37c18
Chat federation: storing chat information 2023-04-20 18:28:08 +02:00
John Livingston 850ea3e61f
Chat federation: refactoring code + fix case when video has no chat 2023-04-20 16:07:00 +02:00
John Livingston 01e7fdc9b6
Chat federation: new settings to disable the feature. 2023-04-20 12:13:22 +02:00
John Livingston 4c138f3f5b
Chat federation metadata fix, and code refactoring. 2023-04-20 11:10:23 +02:00
John Livingston 115fcd8484
Chat federation: add metadata in ActivityPub. WIP 2023-04-19 19:07:08 +02:00
John Livingston 310419ad66
Fix Peertube crash:
Peertube could crash when someone attemps to connect to Websocket endpoint during plugin initialization.
2023-04-17 11:14:41 +02:00
John Livingston d359d3ad99 Fix Prosody room topic:
Due to a bug in mod_muc_http_defaults (https://hg.prosody.im/prosody-modules/rev/6d99ddd99694),
room topics were badly configured. The plugin will fix them at startup, and stops trying to set the subject.
2023-04-14 11:33:41 +02:00
John Livingston cf0e4d8061 Fix settings read. 2023-04-14 11:33:41 +02:00
John Livingston 801798852c Prosody: new settings to provide a custom certificates dir 2023-04-14 11:33:41 +02:00
John Livingston a87a622cba Prosody: renew self signed certificates periodically 2023-04-14 11:33:41 +02:00
John Livingston b4dabfeeb9 New debug mode:
Debug mode is no more triggered by the NODE_ENV value, but by testing
the existance of a file in the plugin data directory.
2023-04-14 11:33:41 +02:00
John Livingston f8b83defb5 Fix Prosody configuration. 2023-04-14 11:33:41 +02:00
John Livingston 772689f9ce Prosody: Generating self-signed certificates for s2s connections. 2023-04-14 11:33:41 +02:00
John Livingston 38023df6be XMPP clients connections WIP + fix mod_muc_http_defaults 2023-04-14 11:33:41 +02:00
John Livingston d544a53b38 XMPP clients connections WIP 2023-04-14 11:33:41 +02:00
John Livingston 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
John Livingston 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
John Livingston c81c2eb9bb Diagnostic tool: add the result of `prosodyctl check` in the debug section. 2023-04-14 11:33:41 +02:00
John Livingston 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
John Livingston 2950fdeddf
link to the new documentation. 2023-02-13 18:03:23 +01:00
John Livingston 3f47c3c65a
Refactoring and simplification (#122) 2023-01-11 18:05:18 +01:00
John Livingston c178213e19
Use ESBuild for frontend build.
Replacing webpack by ESBuild for client code compilation (as in the
official quickstart plugin).

So we can remove deprecated webpack dependencies.

Note: webpack is still used for ConverseJS build.
This may be removed soon.

Related to issue #122.
2022-12-12 19:31:29 +01:00
John Livingston 901d1e96ab
Update @peertube/peertube-types to 4.2.2:
* using a stable version (4.2.2)
* minimum Peertube version is now 4.2.0
* removing some type customizations

Related to issue #122.

Note: there are still some quirks. See: https://github.com/Chocobozzz/PeerTube/issues/5446
2022-12-12 19:31:17 +01:00
John Livingston 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
John Livingston ae5860e537
Implements #123: «disable websocket» settings». 2022-12-08 11:25:57 +01:00
John Livingston 24696acdbe
#120: adding a certs directory to avoid Prosody error logs. 2022-12-06 17:19:53 +01:00
John Livingston e6da0a879f
Prosody AppImage: aarch64 architecture. 2022-11-22 11:35:38 +01:00
John Livingston 059c6522b6
Implements #37: diagnostic tools includes last lines from prosody error log files. 2022-11-18 17:48:20 +01:00
John Livingston 6f47ffe19d
Comment update. 2022-11-18 17:06:53 +01:00
John Livingston 174b996b74
Updating comment. 2022-11-18 12:36:14 +01:00
John Livingston 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
John Livingston 3ba64d3732
Re-ordering the settings page. 2022-11-15 17:19:49 +01:00
John Livingston 8f5b2ae565
Prosody AppImage: extract in a dedicated folder 2022-11-15 16:30:24 +01:00
John Livingston 27e8fbf05f
Fix: creating working directories before extracting Prosody AppImage 2022-11-15 16:07:12 +01:00
John Livingston 459d92cef9
Embedding Prosody using AppImage:
Thanks to this commit, there is no more need to manually install Prosody
on the server.
The plugin now build and embed an AppImage of Prosody.

In this commit:
* building and using a Prosody AppImage.
* Adding a launcher in the AppImage: the first command argument tells if
  we want to run prosody or prosodyctl
* prosodyCtl functions now uses the AppImage.
* Prosody AppImage: extract once at the startup, then run the squashfs
2022-11-15 15:20:10 +01:00
John Livingston 91ea442ce6
Fix «autocolor» mecanism when no color provided (raised an error) 2022-11-01 15:17:21 +01:00
John Livingston a25cdb44ef
Fix WS timeouts:
Nginx as also a timeout. Seems to be 30s. So we ping every 25s, and set an intermediate timeout for Prosody.
2022-11-01 11:58:02 +01:00
John Livingston 90e86a130a
Fix Websocket timeouts:
* defining a ping_interval in ConverseJS
* defining a longer c2s_close_timeout in Prosody configuration
2022-11-01 11:37:24 +01:00
John Livingston 6a54f4d747
Disco: hide external components. 2022-11-01 11:23:34 +01:00
John Livingston ab89351f42
Prosody server: enabling mod_disco. 2022-11-01 10:35:42 +01:00
John Livingston 9e06e32351
Websocket: only activate on Prosody if the feature is available. 2022-10-13 18:56:00 +02:00
John Livingston 0be08c7b57
Using Peertube v5.0.0 websocket capacities. 2022-10-13 18:34:41 +02:00
John Livingston e7eca75736
Fix Prosody WS configuration. 2022-10-13 10:47:36 +02:00
John Livingston 67062aac62
Better implementation. 2022-10-13 10:47:36 +02:00
John Livingston 6f8c7b8a93
Websocket for builtin Prosody. WIP 2022-10-13 10:47:33 +02:00
John Livingston 507da6e042
Fix Peertube crash when stopping the BOSH proxy. 2022-10-13 10:44:02 +02:00
John Livingston de179e90d3
Promisify proxy close. 2022-10-13 10:44:01 +02:00
John Livingston 1bb202d9d3
Replacing express-http-proxy by http-proxy + code refactoring. 2022-10-13 10:43:59 +02:00
John Livingston 2b7174eb96
Comment. 2022-10-13 10:41:09 +02:00
John Livingston 7259ae59a2
Builtin Prosody: BOSH path without plugin version, so it can be optimized in the nginx configuration. 2022-10-13 10:40:06 +02:00
John Livingston 7906ddf625
Prosody mode only:
Removing old modes (ConverseJS and External URI).
Work in progress.
2022-10-10 18:08:20 +02:00
John Livingston 01a052d380
Fix #97 #54: Settings to hide the chat for anonymous users 2022-04-11 18:12:12 +02:00
John Livingston 01bb6bdc67
Fix links. 2022-04-07 10:57:39 +02:00
John Livingston d0762362e0
Deprecation warning. 2022-04-07 10:55:31 +02:00
John Livingston 80ac08bd18
Transparent background + fix
* Builtin Prosody, Share chat url: option to have a transparent background (for streaming integration).
* Builtin Prosody, Share chat url: fixed new day hidding when no scrollbar in readonly mode.
2022-01-16 17:50:11 +01:00
John Livingston 7db856ce0f
Using types declarations from the official @peertube/peertube-types package. 2022-01-11 01:29:33 +01:00
John Livingston 9a4608863b
Auto viewer mode (WIP). 2022-01-07 19:20:28 +01:00
John Livingston bf35172856
Builtin Prosody: display random avatars for anonymous users. 2022-01-06 05:30:55 +01:00
John Livingston 6afb640df2
Builtin-Prosody: use Peertube's avatar. 2022-01-05 18:53:44 +01:00
John Livingston be592aeacf
Enable Prosody modules pep and vcard_legacy. 2022-01-05 02:01:54 +01:00
John Livingston 04b1945239
Builtin Prosody, Share chat url: ability to show/hide the scrollbar in readonly mode. 2022-01-04 17:42:03 +01:00
John Livingston c95dd1f713
chat-share-url 2021-12-21 19:54:37 +01:00
John Livingston 148b28ef84
ConverseJS Readonly mode. Changing muc_mention_autocomplete_min_chars. 2021-12-14 13:02:15 +01:00
John Livingston 586df3983c
Fix typo. 2021-12-13 21:51:00 +01:00
John Livingston df3f87e903
XMPP external components. 2021-12-11 19:09:01 +01:00
John Livingston 2e7cec04d9
Reverting work on DemoBot (it is now an external package). 2021-12-11 17:40:26 +01:00
John Livingston 42988a5d04
Demo Bot: Complete code refactoring. WIP. 2021-12-08 15:29:34 +01:00
John Livingston 0e45f9a197
Demo Bot: WIP. 2021-12-07 18:57:08 +01:00
John Livingston 978ee83eee
Demo Bot: first proof of concept. 2021-12-07 13:14:01 +01:00
John Livingston f8ce4e6583
Config: preparing the arrival of new config files (for bots). Code refactoring. 2021-12-07 11:59:32 +01:00
John Livingston 2244ae22c2
Prosody diagnostic: hidden secret keys from the result. 2021-12-07 10:50:28 +01:00
John Livingston 62456aead1
Bots settings (WIP). 2021-12-07 10:29:20 +01:00
John Livingston 5e988605ce
Builtin Prosody: new settings to choose how long the room's content is archived, and if it should be archived by default. 2021-12-01 12:57:15 +01:00
John Livingston 8999133dcc
Autocolors
WIP on a new feature: trying to guess current Peertube theme's colors,
and apply them to ConverseJS.
2021-11-19 16:45:10 +01:00
John Livingston 9b20042aad
ConverseJS: theme settings. 2021-11-18 11:08:12 +01:00
John Livingston 8a2b063489
Settings: auto compute «list rooms» button styles. 2021-11-18 10:44:30 +01:00
John Livingston efc8c6a94f
Message near the diagnostic button to suggest to refresh the page if not working. 2021-11-02 17:13:38 +01:00
John Livingston aaea040a4f
Renaming. 2021-08-05 18:48:06 +02:00
John Livingston 0e14ec6649
Removed the settings «Chats are only available for local videos».
From now on, webchat can only be activated for local videos.
It will never be displayed on remote videos.
This is because an incompatibility with a new feature (webchat per channel).
Moreover this feature was very limited: the webchat was not shared with the remote instance (this will probably be achieved in a future release).
2021-08-05 18:45:06 +02:00
John Livingston 3dcbba57e6
Room list: force channel or video room. 2021-08-05 18:34:38 +02:00
John Livingston e9d1e55084
Room list: handle channel rooms. 2021-08-05 18:25:27 +02:00
John Livingston 5c0b274f39
Builtin Prosody: adding the prosody-room-type settings to allow rooms to be per channel or per video. WIP. 2021-08-05 15:41:49 +02:00
John Livingston 3ca97fcf0e
Fix #63: On some old Peertube installations, there can be usernames with upper-case letters. Adding a toLowerCase() for the XMPP jid. 2021-08-05 11:51:16 +02:00
John Livingston e14007f2e9
External webchat tool: new placeholder CHANNEL_ID in the webchat url. 2021-08-04 17:38:26 +02:00
John Livingston 523a5f35ab
Fix. 2021-08-04 17:32:47 +02:00
John Livingston b2b489af6e
Adding debug information in the diagnostic screen. 2021-08-04 17:15:58 +02:00
John Livingston ddaf57b5d5
Minor fix + code refactoring. 2021-08-04 00:57:14 +02:00
John Livingston a3579abb81
Builtin ConverseJS on external XMPP server: new placeholders for the room name: CHANNEL_ID, CHANNEL_NAME. 2021-08-04 00:22:19 +02:00
John Livingston 40ad9629fc
Fix broken API diagnostic.
* Moving http_peertubelivechat_test module in muc component, as the
global config has no http_host.
* Adding Host HTTP Header to API call from Peertube to Prosody
2021-07-20 02:52:58 +02:00
John Livingston e50cfa6a8b
Moving setting prosody-peertube-uri in advanced settings. 2021-07-14 19:22:25 +02:00
John Livingston 446ebc0de9
Merge branch 'release/3.2.0' into prosody_room_list 2021-07-14 19:11:09 +02:00
John Livingston ed718d7d27
Rewriting some c2s code. 2021-07-14 18:46:08 +02:00
tytan652 3b51bf2946 Add localhost c2s connections 2021-07-13 20:18:32 +02:00
John Livingston 98c5518059
Fix muc component http_host. 2021-07-06 11:26:37 +02:00
John Livingston 9a65da50e5 FIXME. 2021-06-22 14:57:57 +02:00
John Livingston 47bf53bafb Merge branch 'release/3.2.0' into prosody_room_list 2021-06-22 13:47:39 +02:00
John Livingston 67f330017d Diagnostic tool: correctly parse Prosody nightly build versions. 2021-06-22 13:28:15 +02:00
John Livingston 6608480826 Builtin Prosody: optional settings to change the url for Prosody's API calls. 2021-06-22 13:23:01 +02:00
John Livingston a526feac19 Diagnostic tool: testing API communication from Prosody to Peertube. 2021-06-22 12:57:24 +02:00
John Livingston 7279761c66 Diagnostic tool: testing API communication between Peertube and Prosody. 2021-06-22 10:26:45 +02:00
John Livingston 30d70e033e Retrieving list rooms from prosody. 2021-06-12 03:52:45 +02:00
John Livingston 56e74e0877 Initialize prosody-list-rooms button. 2021-06-12 01:16:57 +02:00
John Livingston d4f9fa9428 Text simplification to prepare translation. 2021-06-11 14:45:18 +02:00
John Livingston 80ef06c65f Settings simplification to prepare translations. Diagnostic button is initialized by frontend. 2021-06-11 14:30:46 +02:00
John Livingston 385a0074c1 Chat can be enabled in video properties. 2021-06-08 18:08:58 +02:00
John Livingston a7b19df76b Settings tips. 2021-06-03 12:27:52 +02:00
John Livingston 40568f800a Settings: moving the chat mode on top. 2021-06-03 12:24:09 +02:00
John Livingston 5e69474234 Simpler settings screen (tips, help, titles, ...) 2021-06-03 12:20:19 +02:00
John Livingston d0b44c3486 Replacing old settings by chat-type. 2021-06-03 11:46:11 +02:00
John Livingston 36146ee76c Adding the chat-type field in the settings. 2021-06-02 19:54:04 +02:00
John Livingston 11d79fc611 Migration script in prevision of the future settings "chat-type". 2021-06-02 19:16:27 +02:00
John Livingston 24c764c3a5 Merge branch 'main' into release/3.0.0 2021-06-02 16:16:46 +02:00
John Livingston 83c2de963a Fix typo: builtin prosody wont stop when desactivated. 2021-06-02 16:10:56 +02:00
John Livingston 52a3edb9da Remove backward compatibility (onSettingsChange callback is async). 2021-06-02 16:07:52 +02:00
John Livingston 88d9ad1f94 Remove backward compatibility (restoring default values for checkboxes). 2021-06-02 15:56:12 +02:00
John Livingston 10bbb7f040 Remove backward compatibility (peertubeHelpers.plugin always available). 2021-06-02 15:48:56 +02:00
John Livingston 228a60ca3a Remove backward compatibility (peertubeHelpers.user.getAuthUser always available). 2021-06-02 14:07:12 +02:00
John Livingston 6f57931a9d Remove backward compatibility (user.Account.name is always provided). 2021-06-02 13:14:03 +02:00
John Livingston af20f3918f Remove backward compatibility (always using permanent working dir). 2021-06-02 12:41:28 +02:00
John Livingston 760dbc93f7 Merge v2.2.1. 2021-05-18 21:02:53 +02:00
John Livingston 5984722880 Revert «Better default values for settings», because of a bug in Peertube. 2021-05-18 20:51:07 +02:00
John Livingston bc81008ffb Room are persistent by default when there is a non temporary working dir. 2021-05-18 18:29:17 +02:00
John Livingston d4b8c8b2e2 Using getBaseStaticRoute for index.html urls. 2021-05-18 18:17:13 +02:00
John Livingston 2a8df1dc3c Use peertubeHelpers.plugin methods when available:
* getBaseStaticRoute use peertubeHelper when available
* getBaseRouter renamed getBaseRouterRoute and use peertubeHelper when available
* Backward compatibility is maintained.
2021-05-18 18:06:11 +02:00
John Livingston 4cf9ab51aa Prosody log rotation every 24 hour. 2021-05-12 14:59:52 +02:00
John Livingston c5bcf611d3 Prosody log level will be the same as the Peertube's one. 2021-05-12 11:48:38 +02:00
John Livingston c9eb3ffda4 Update comment after more tests. 2021-05-11 17:31:20 +02:00
John Livingston 236a9301bc mod_muc_moderation 2021-05-11 16:49:55 +02:00
John Livingston a602c7870a Using mod_muc_mam:
* Starting with Peertube 3.2.0, builtin prosody save room history on server. So when a user connects, he can get previously send messages.
* Fix: settings archive_expires_after was useless without mod_mam
2021-05-11 16:10:57 +02:00
John Livingston 094193a3b1 Builtin prosody use a working dir provided by Peertube. 2021-05-11 15:37:34 +02:00
John Livingston 4840bd735a Better default values for settings:
* Remove old Peertube 3.0.1 compatibility (default value for checkbox settings should be false)
2021-05-07 19:18:41 +02:00
John Livingston 73ed34a2fa Fix: starting with Peertube 3.2.0, there is a header X-Frame-Options. Removing it on the iframe route. 2021-05-07 16:45:55 +02:00
John Livingston 5484947f51 Fix: if the video owner is already owner of the chatroom, he should not be downgraded to admin. 2021-05-06 21:05:46 +02:00
John Livingston e91d378e5c Fix: 2.1.0 was in fact correct... Did not work on my preprod env because of... a Livebox bug... 2021-05-06 21:00:42 +02:00
John Livingston fec219a909 Revert getProsodyDomain. Broken when not on localhot. 2021-05-06 14:04:16 +02:00
John Livingston 6cca689ef7 Trying to fix for production. 2021-05-06 13:59:45 +02:00
John Livingston f590cf2c7b Builtin Prosody: use Peertube domain instead of localhost. 2021-05-06 13:31:55 +02:00
John Livingston bda306b461 Dont add chat admin for remote videos. 2021-05-06 12:42:07 +02:00
John Livingston 27d8ab7fc6 Prosody: the video owner is admin for the room. 2021-05-05 18:00:03 +02:00
John Livingston e5d5da4d07 Builtin Prosody: allow moderation operations. 2021-05-05 17:20:06 +02:00
John Livingston 6b77c3585d Protecting some APIs with an APIKEY. 2021-05-05 17:06:19 +02:00
John Livingston 787fed19d0 Peertube 3.2.0 will provide user.Account.name. 2021-05-05 16:30:18 +02:00
John Livingston 3658ee797a getAuthUser becomes async. 2021-05-05 15:55:38 +02:00
John Livingston 07353bd327 Prosody: instance moderators and administrators are automatically owner of rooms. 2021-05-05 15:22:37 +02:00
John Livingston 5792b98376 Rewriting using Map. 2021-05-04 16:43:38 +02:00
John Livingston ad2d7742e9 Prosody: use the user nickname. 2021-05-04 16:33:32 +02:00
John Livingston deff34ab95 Fix. 2021-05-04 15:33:05 +02:00
John Livingston 96844d1662 carbon module 2021-05-04 13:16:59 +02:00
John Livingston 76adc7124f Prosody auth, first working code:
* generated password on an api call
* use this password to authenticate on prosody
* using helper getAuthUser when available, else fallback to custom code
2021-05-04 13:00:44 +02:00
John Livingston 4a4ffaae2d Prosody auth WIP. 2021-05-03 20:37:23 +02:00
John Livingston d2e36344af Adding asyncMiddleware. 2021-05-03 20:06:36 +02:00
John Livingston 5575628e99 Moving the prosody virtualhost to anon.localhost. 2021-05-02 16:55:01 +02:00
John Livingston f11fec7c97 Diagnostic: check prosody version. 2021-05-02 16:16:19 +02:00
John Livingston e1b08ce025 Removing muc_create_api_auth, because Peertube will not allow an authorization header. 2021-05-02 15:22:08 +02:00
John Livingston 75bbfc9159 mod_muc_http_defaults WIP. 2021-05-02 14:35:58 +02:00
John Livingston b225148dfb 403 status when video invalid. 2021-05-01 19:01:31 +02:00
John Livingston ef05583fba Adding a Shared folder:
* init some shared functions (videoHasWebchat, parseConfigUUIDs)
* api/room: checking that video has live enabled
* fix promise handling in initChat function
* removing some 'use strict' that are no more necessary in typescript
2021-05-01 18:30:21 +02:00
John Livingston 0cc57dfc12 Prosody: the first user will not be granted owner rights. 2021-05-01 10:30:41 +02:00
John Livingston fefcf1f08a Fix room config result. 2021-05-01 10:22:06 +02:00
John Livingston a25ef24237 WIP. 2021-04-30 18:03:12 +02:00
John Livingston aa88870a49 Prosody: specifying storage=internal. 2021-04-30 18:00:21 +02:00
John Livingston 9dc0ce6383 Removing a hack:
* replacing loadByUrl by loadByIdOrUuid
* breaks compatibility with peertube 3.0.1
* simpler webchat route
* fix uuid escaping in iframe uri
2021-04-30 17:39:27 +02:00
John Livingston fbfd86aab0 WIP. 2021-04-30 16:48:16 +02:00
John Livingston 1c0fbe743f Rewriting the prosody config generator code. 2021-04-30 16:22:58 +02:00
John Livingston c19035c0b7 mod_muc_http_defaults WIP. 2021-04-29 18:31:48 +02:00
John Livingston a4d671bf50 Prosody log level debug for test environment. 2021-04-29 17:45:04 +02:00
John Livingston 62af899a50 Builtin Prosody modules:
* initialize prosody modules folder
* comment on prosody modules licensing
* use mod_muc_http_defaults to set rooms properties and prevent unauthorized room creation WIP
2021-04-29 16:50:30 +02:00
John Livingston 079332733a Fix Peertube server crash when prosody is not installed. 2021-04-18 17:48:21 +02:00