1
0
mirror of https://bitbucket.org/shim_/mumble.git synced 2019-09-08 21:58:51 +02:00

added ssl support

This commit is contained in:
shim_
2016-05-28 15:49:59 +02:00
parent 294dbcc878
commit 834902e0fc
2 changed files with 20 additions and 1 deletions

View File

@@ -20,6 +20,19 @@ Optional variables to configure MySQL:
* **DB_PORT** defaults to *3306*: Port of your MySQL server, 3306 is the MySQL default
###Or more secure by using your own, trusted certificate###
```
#!bash
docker run -p 64738:64738 -p 64738:64738/udp -v ./data/:/data -e SSL=true shimun/mumble
```
This requires that you placed your certificate in *./data/ssl/murmur.pem* and your key in the same directory named as *murmur.key*
Optional variables to configure SSL:
* **SSL_FILENAME** defaults to *murmur*(ex. above): The name of your certificates in /data/ssl
Other variables to configure Mumble:

View File

@@ -30,6 +30,12 @@ if [ ! -e /data/murmur.conf ]; then
write_config_if_else "$SERVER_TEXT" 'welcometext' ''
write_config_if_else "$REGISTER_NAME" 'registerName' ''
write_config_if_else "$BANDWIDTH" 'bandwidth' ''
if [ ! -z "$SSL" ] && [ "$SSL" != "false" ]; then
NAME='murmur'
if [ ! -z "$SSL_FILENAME" ]; then NAME="$SSL_FILENAME"; fi
write_config "sslCert=/data/ssl/$NAME.pem"
write_config "sslKey=/data/ssl/$NAME.key"
fi
if [ ! -z "$DATABASE" ] && [ "$DATABASE" == "MYSQL" ]; then
if [ ! -z "$DB_NAME" ] && [ ! -z "$DB_HOST" ]; then
write_config 'dbdriver' 'QMYSQL'