Commit Graph

69 Commits

Author SHA1 Message Date
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
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
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
e5d5da4d07 Builtin Prosody: allow moderation operations. 2021-05-05 17:20:06 +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
5575628e99 Moving the prosody virtualhost to anon.localhost. 2021-05-02 16:55:01 +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
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
af46ecc3a2 Refactoring getProsodyConfig stuffs. Preparing the http bind router. 2021-04-15 12:17:08 +02:00
John Livingston
817cf28e2a Using builtin prosody when enabled. 2021-04-14 18:47:23 +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