diff options
author | Morris Jobke <hey@morrisjobke.de> | 2016-11-21 19:08:38 +0300 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2016-11-21 19:31:23 +0300 |
commit | 17c4da6bfeecab68b715f634c75bb748eb3efb65 (patch) | |
tree | eddf88cc015e91ad449ef1756d8b6437d18ae67e /lib/Settings | |
parent | d06d10c6974526c1bf3b1148d8eee86ffaa8600d (diff) |
Add admin setting to specify a TURN server and a shared secret
* then calculates the user credentials on the fly for 1 hour
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/Settings')
-rw-r--r-- | lib/Settings/Admin.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Settings/Admin.php b/lib/Settings/Admin.php index d79d870b7..9e9edef03 100644 --- a/lib/Settings/Admin.php +++ b/lib/Settings/Admin.php @@ -42,6 +42,8 @@ class Admin implements ISettings { public function getForm() { $parameters = [ 'stunServer' => Util::getStunServer($this->config), + 'turnServer' => $this->config->getAppValue('spreed', 'turn_server', ''), + 'turnServerSecret' => $this->config->getAppValue('spreed', 'turn_server_secret', ''), ]; return new TemplateResponse('spreed', 'settings-admin', $parameters, ''); |