Commit Graph

369 Commits

Author SHA1 Message Date
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
25da6b6e0d Detect Peertube bad version at startup. 2021-06-03 11:53:18 +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
d2df17c7b9 Update comments. 2021-06-02 12:48:24 +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
0305b849cf Updating types. 2021-05-11 15:08:41 +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
9c4cc64dcb More precise MVideo type. 2021-04-30 18:03:04 +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
John Livingston
8ddbb21c7f Documentation. 2021-04-16 17:55:48 +02:00
John Livingston
9b5caacb28 Display prosody port. 2021-04-16 15:23:08 +02:00
John Livingston
295a55c9f6 Port configuration. 2021-04-16 15:13:46 +02:00
John Livingston
fce0e7c63c Cleaning config file. 2021-04-16 14:39:25 +02:00
John Livingston
bd91abc5b8 Working prosody configuration. 2021-04-16 14:26:21 +02:00
John Livingston
48851d422a Fix deprecated use of bodyParser. 2021-04-16 13:46:51 +02:00
John Livingston
9b4b17b326 Indentation. 2021-04-16 13:44:24 +02:00
John Livingston
6d63d42e88 Fix using express-http-bind as proxy for BOSH. 2021-04-16 13:42:07 +02:00
John Livingston
f1192e3da0 Using express-http-bind as proxy for BOSH. WIP 2021-04-15 15:21:58 +02:00
John Livingston
58b0a0cd69 Unloading http bind route. 2021-04-15 13:11:59 +02:00
John Livingston
af46ecc3a2 Refactoring getProsodyConfig stuffs. Preparing the http bind router. 2021-04-15 12:17:08 +02:00
John Livingston
7dbb964ad7 Fix prosody config. 2021-04-15 11:02:05 +02:00
John Livingston
817cf28e2a Using builtin prosody when enabled. 2021-04-14 18:47:23 +02:00
John Livingston
d536625f7b WIP on diagnostic. 2021-04-14 18:15:43 +02:00
John Livingston
faa12de768 Better prosody process handling. 2021-04-14 17:55:26 +02:00
John Livingston
63112df21a Fix prosody exec call. 2021-04-14 17:48:46 +02:00
John Livingston
8a73d93aac WIP on prosody spawning. 2021-04-14 17:10:22 +02:00
John Livingston
a018ef5293 WIP on Prosody diagnostic. 2021-04-14 16:14:56 +02:00
John Livingston
f5b438d587 WIP. Spawning prosody. 2021-04-14 15:26:00 +02:00
John Livingston
da37e539f7 WIP. 2021-04-13 18:00:45 +02:00
John Livingston
cc21305f6a WIP on Prosody integration. 2021-04-13 17:13:41 +02:00
John Livingston
4690d97384 WIP on builtin prosody. 2021-04-12 20:52:21 +02:00
John Livingston
79bdaceb48 Changing diagnostic functions arguments. 2021-04-12 20:25:56 +02:00
John Livingston
d1ede8d3ee Refactoring diagnostic tests in multiple files. 2021-04-12 17:53:12 +02:00
John Livingston
6bc1f66cf1 Moving peertube definition files to @types directory. 2021-04-12 16:41:18 +02:00
John Livingston
f0fc7148aa Adding an useless settings to display some help. 2021-04-12 16:31:48 +02:00
John Livingston
f64cb10ea2 Diagnostic tools WIP. 2021-04-10 15:10:53 +02:00
John Livingston
42bd94a8c3 Diagnostic tools: testing user rights. 2021-04-10 13:57:47 +02:00
John Livingston
f65b6ae876 Diagnostic tools. WIP 2021-04-10 04:16:25 +02:00
John Livingston
59cd78ee82 Initializing a diagnostic tools. WIP 2021-04-09 21:28:16 +02:00
John Livingston
8b3763761b Better typing. 2021-04-09 19:52:59 +02:00
John Livingston
dcef708370 Routers in separate files. 2021-04-09 19:29:44 +02:00
John Livingston
20a461a84b Fix import. 2021-04-09 11:22:46 +02:00
John Livingston
e770a60c68 Releasing memory. 2021-04-09 10:57:54 +02:00
John Livingston
0bad31dddb Fix plugin unregister: unload all modules. 2021-04-08 03:47:55 +02:00
John Livingston
490d6f18c3 Refactoring server code:
* Split server code in several libs
* improve server/peertube.d.ts.
2021-04-08 02:43:21 +02:00
John Livingston
254fa6e3c5 Fix unused options. 2021-04-07 18:29:17 +02:00
John Livingston
89a03032ff Clean tsconfig file. 2021-04-07 17:26:30 +02:00
John Livingston
3dd8718744 Eslint: configure for standard-typescript (backend), and separate configurations depending on folders. 2021-04-07 17:20:28 +02:00
John Livingston
8b11c10e32 Server code in typescript. 2021-04-07 16:52:38 +02:00
John Livingston
dca4e67b35 Separing frontend and backend code in different folders. 2021-04-07 15:53:22 +02:00