Moving the prosody virtualhost to anon.localhost.
This commit is contained in:
parent
f11fec7c97
commit
5575628e99
@ -107,7 +107,7 @@ class ProsodyConfigContent {
|
|||||||
this.paths = paths
|
this.paths = paths
|
||||||
this.global = new ProsodyConfigGlobal()
|
this.global = new ProsodyConfigGlobal()
|
||||||
this.log = ''
|
this.log = ''
|
||||||
this.anon = new ProsodyConfigVirtualHost('localhost')
|
this.anon = new ProsodyConfigVirtualHost('anon.localhost')
|
||||||
this.muc = new ProsodyConfigComponent('muc', 'room.localhost')
|
this.muc = new ProsodyConfigComponent('muc', 'room.localhost')
|
||||||
|
|
||||||
this.global.set('daemonize', false)
|
this.global.set('daemonize', false)
|
||||||
@ -181,6 +181,10 @@ class ProsodyConfigContent {
|
|||||||
useMucHttpDefault (url: string): void {
|
useMucHttpDefault (url: string): void {
|
||||||
this.muc.add('modules_enabled', 'muc_http_defaults')
|
this.muc.add('modules_enabled', 'muc_http_defaults')
|
||||||
this.muc.add('muc_create_api_url', url)
|
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 {
|
setArchive (duration: string): void {
|
||||||
|
@ -32,7 +32,7 @@ async function initWebchatRouter (options: RegisterServerOptions): Promise<Route
|
|||||||
let boshUri: string
|
let boshUri: string
|
||||||
let wsUri: string
|
let wsUri: string
|
||||||
if (settings['chat-use-prosody']) {
|
if (settings['chat-use-prosody']) {
|
||||||
server = 'localhost'
|
server = 'anon.localhost'
|
||||||
room = '{{VIDEO_UUID}}@room.localhost'
|
room = '{{VIDEO_UUID}}@room.localhost'
|
||||||
boshUri = getBaseRouter() + 'webchat/http-bind'
|
boshUri = getBaseRouter() + 'webchat/http-bind'
|
||||||
wsUri = ''
|
wsUri = ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user