-
Notifications
You must be signed in to change notification settings - Fork 9
Documentation V2 Server Status
Available since: 0.2
The server comes with a web-app to monitor basic status information about the running server. It is located in the server-status directory of the downloaded server package.
This documentation asumes that your server is installed in the
/opt/ts3video
directory. Windows can use the same instructions in a
slightly modified way.
The web-app uses a WebSocket connection to retrieve
real-time information from the VideoServer.
Basic options can be changed in the web-app's config.json
file.
Here is a list of the available options and what they include:
server.statussocket.address
The host address to which the web-app's WebSocket will connect. Set to
null
to let the application use the host from the address bar in your browser (recommended).
server.statussocket.port
The port to which the web-app's WebSocket will connect.
server.statussocket.path
The web-app's WebSocket will use this path in it's HTTP request. It can be used to proxy-forward the WebSocket with your web-server (e.g.: Apache's
ProxyPass
,ProxyPassReverse
).
ui.updateinterval
The polling interval which is used to update visible information.
Copy or link the server-status
folder into the public reachable
web-server's www folder.
cp -rf /opt/ts3video/server-status /var/www/videoserver-status
Before the web-app can fetch any data from the VideoServer you need to
update the VideoServer's configuration file /opt/ts3data/default.ini
and set the following values (restart required):
[default]
wsstatus-address=any
wsstatus-port=13375
The VideoServer will now accept WebSocket connections from anywhere.
In case that you only want to access the web-app from localhost, you can
keep the VideoServer's default configuration values
(wsstatus-address=127.0.0.1
).
Finally you need to restart the VideoServer
/etc/init.d/ts3video stop
/etc/init.d/ts3video start
and open the web-app in your browser, e.g.: http://localhost/videoserver-status
Requirements: Apache >=2.4.5 with mod_proxy and mod_proxy_wstunnel enabled.
First you need to create a new VirtualHost
configuration.
cd /etc/apache2/sites-available
vi videoserver-status
Your configuration should look like this:
<VirtualHost *:80>
ServerName videoserver-status.yourhost.com
DocumentRoot /opt/ts3video/server-status
# Password protection (optional)
<Location />
AuthType Basic
AuthName "Video Server Status"
AuthUserFile /opt/users.passwd
require valid-user
</Location>
# Forward incoming WebSocket connections to the running VideoServer on port 13375.
# Note: ProxyPass for WebSockets is available since Apache 2.4.5
# You need to have the Apache modules proxy_http and proxy_wstunnel enabled.
<Location /ws>
ProxyPass ws://127.0.0.1:13375
ProxyPassReverse ws://127.0.0.1:13375
</Location>
</VirtualHost>
Users can be managed with Apache's htpasswd tool.
Now you need to update the web-app's configuration file to match your
VirtualHost:
/opt/ts3video/server-status/config.json
{
"server.statussocket.address": null,
"server.statussocket.port": 80,
"server.statussocket.path": "/ws",
"ui.updateinterval": 5000
}
After a restart of the Apache web-server you can access the web-app: http://videoserver-status.yourhost.com