- put bigbluebutton web server url into properties file

git-svn-id: http://bigbluebutton.googlecode.com/svn/trunk@1339 af16638f-c34d-0410-8cfa-b39d5352b314
This commit is contained in:
Richard Alam 2009-04-29 21:09:37 +00:00
parent 288fb0e820
commit 5a7ca059b3
4 changed files with 13 additions and 6 deletions

View File

@ -5,6 +5,8 @@ asterisk.host=192.168.0.101
ami.user=ralam
ami.password=secure
bigbluebutton.web.serverURL=http://localhost:8080
# we separate these so we can inject it manually
# to test PresentationService.groovy
swfTools=C:/swftools-0.9

View File

@ -2,8 +2,10 @@ package org.bigbluebutton.web.controllers
import org.bigbluebutton.web.domain.ScheduledSession
import grails.converters.*
import org.codehaus.groovy.grails.commons.*
class PublicScheduledSessionController {
class PublicScheduledSessionController {
def index = {
redirect(action:show)
}
@ -23,7 +25,8 @@ class PublicScheduledSessionController {
redirect(action:joinIn)
}
else {
def hostUrl = grailsApplication.config.grails.serverURL
def config = ConfigurationHolder.config
def hostUrl = config.bigbluebutton.web.serverURL
def now = new Date().time
def inSession = ((now > scheduledSessionInstance.startDateTime.time) && (now < scheduledSessionInstance.endDateTime.time))
@ -90,8 +93,8 @@ class PublicScheduledSessionController {
}
println 'rendering signIn'
//render(view:"signIn")
def hostUrl = grailsApplication.config.grails.serverURL
def config = ConfigurationHolder.config
def hostUrl = config.bigbluebutton.web.serverURL
redirect(url:"$hostUrl/client/BigBlueButton.html")
}

View File

@ -4,6 +4,7 @@ import org.bigbluebutton.web.domain.ScheduledSession
import java.util.UUID
import org.bigbluebutton.web.domain.User
import org.bigbluebutton.web.domain.Conference
import org.codehaus.groovy.grails.commons.*
class ScheduledSessionController {
@ -25,7 +26,8 @@ class ScheduledSessionController {
redirect(action:list)
}
else {
def hostUrl = grailsApplication.config.grails.serverURL
def config = ConfigurationHolder.config
def hostUrl = config.bigbluebutton.web.serverURL
return [ scheduledSessionInstance : scheduledSessionInstance, hostUrl:hostUrl ]
}

View File

@ -38,7 +38,7 @@
<tr class="prop">
<td valign="top" class="name">Link:</td>
<td valign="top" class="value">
${hostUrl}/${scheduledSessionInstance.tokenId}
${hostUrl}/conference-session/joinIn/${scheduledSessionInstance.tokenId}
</td>
</tr>