mod_muc_http_defaults WIP.

This commit is contained in:
John Livingston
2021-04-29 18:31:48 +02:00
parent a4d671bf50
commit c19035c0b7
3 changed files with 55 additions and 10 deletions

View File

@ -1,6 +1,6 @@
import * as fs from 'fs'
import * as path from 'path'
import { pluginName } from '../helpers'
import { pluginName, getBaseRouter } from '../helpers'
type LogMode = 'debug' | 'info'
@ -114,15 +114,15 @@ async function getProsodyConfig (options: RegisterServerOptions): Promise<Prosod
const mucModules: ProsodyModuleConfig[] = []
// mucModules.push({
// module: 'muc_http_defaults',
// options: [
// {
// name: 'muc_create_api_url',
// value: '' // FIXME
// }
// ]
// })
mucModules.push({
module: 'muc_http_defaults',
options: [
{
name: 'muc_create_api_url',
value: options.peertubeHelpers.config.getWebserverUrl() + getBaseRouter() + 'api/room'
}
]
})
const mucModulesEnabled: string = mucModules.map(m => ' "' + m.module + '";').join('\n')
const mucModulesOptions: string = mucModules.map(m => {