Moving the prosody virtualhost to anon.localhost.

This commit is contained in:
John Livingston 2021-05-02 16:55:01 +02:00
parent f11fec7c97
commit 5575628e99
2 changed files with 6 additions and 2 deletions

View File

@ -107,7 +107,7 @@ class ProsodyConfigContent {
this.paths = paths
this.global = new ProsodyConfigGlobal()
this.log = ''
this.anon = new ProsodyConfigVirtualHost('localhost')
this.anon = new ProsodyConfigVirtualHost('anon.localhost')
this.muc = new ProsodyConfigComponent('muc', 'room.localhost')
this.global.set('daemonize', false)
@ -181,6 +181,10 @@ class ProsodyConfigContent {
useMucHttpDefault (url: string): void {
this.muc.add('modules_enabled', 'muc_http_defaults')
this.muc.add('muc_create_api_url', url)
// restrict_room_creation: we can override the 'local' value.
// Indeed, when muc_http_default is used, room creation will be managed by api.
this.muc.set('restrict_room_creation', false)
}
setArchive (duration: string): void {

View File

@ -32,7 +32,7 @@ async function initWebchatRouter (options: RegisterServerOptions): Promise<Route
let boshUri: string
let wsUri: string
if (settings['chat-use-prosody']) {
server = 'localhost'
server = 'anon.localhost'
room = '{{VIDEO_UUID}}@room.localhost'
boshUri = getBaseRouter() + 'webchat/http-bind'
wsUri = ''