diff --git a/pyweb/mumble/models.py b/pyweb/mumble/models.py index e6e873e..16d676a 100644 --- a/pyweb/mumble/models.py +++ b/pyweb/mumble/models.py @@ -38,6 +38,10 @@ class Mumble( models.Model ): bwidth = models.IntegerField( 'Bandwidth [Bps]', blank = True, null = True ); sslcrt = models.TextField( 'SSL Certificate', blank = True ); sslkey = models.TextField( 'SSL Key', blank = True ); + obfsc = models.BooleanField( 'IP Obfuscation', default = False ); + player = models.CharField( 'Player name regex', max_length=200, default=r'[-=\w\[\]\{\}\(\)\@\|\.]+' ); + channel= models.CharField( 'Channel name regex', max_length=200, default=r'[ \-=\w\#\[\]\{\}\(\)\@\|]+' ); + default= models.IntegerField( 'Default channel', default=0 ); booted = models.BooleanField( 'Boot Server', default = True ); def getDbusMeta( self ): @@ -80,6 +84,11 @@ class Mumble( models.Model ): murmur.setConf( srvid, 'password', self.passwd ); murmur.setConf( srvid, 'certificate', self.sslcrt ); murmur.setConf( srvid, 'key', self.sslkey ); + murmur.setConf( srvid, 'obfuscate', str(self.obfsc).lower() ); + murmur.setConf( srvid, 'playername', self.player ); + murmur.setConf( srvid, 'channelname', self.channel ); + murmur.setConf( srvid, 'defaultchannel', str(self.default) ); + if self.port is not None: murmur.setConf( srvid, 'port', str(self.port) ); diff --git a/template/mumble/mumble.htm b/template/mumble/mumble.htm index ec7831d..e33c176 100644 --- a/template/mumble/mumble.htm +++ b/template/mumble/mumble.htm @@ -33,7 +33,7 @@ {% else %} -

You need to be logged in to be able to register an account.

+

You need to be logged in to be able to register an account on this Mumble server.

{% endif %} @@ -95,7 +95,7 @@ renderTo: 'col3_content', layout: 'card', id: 'mumble_container', - height: 400, + height: 510, activeItem: 0, border: false, items: [ { @@ -104,9 +104,9 @@ defaults: { autoheight: true }, activeTab: {{ DisplayTab }}, items: [ - { contentEl: 'mumble_registration', title: 'Registration' }, + { contentEl: 'mumble_registration', title: 'Registration', autoScroll: true }, {% if CurrentUserIsAdmin %} - { contentEl: 'mumble_admin', title: 'Administration' }, + { contentEl: 'mumble_admin', title: 'Administration', autoScroll: true }, {% endif %} ] },