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:
13
README.md
13
README.md
@@ -20,6 +20,19 @@ Optional variables to configure MySQL:
|
|||||||
|
|
||||||
* **DB_PORT** defaults to *3306*: Port of your MySQL server, 3306 is the MySQL default
|
* **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:
|
Other variables to configure Mumble:
|
||||||
|
|
||||||
|
6
init.sh
6
init.sh
@@ -30,6 +30,12 @@ if [ ! -e /data/murmur.conf ]; then
|
|||||||
write_config_if_else "$SERVER_TEXT" 'welcometext' ''
|
write_config_if_else "$SERVER_TEXT" 'welcometext' ''
|
||||||
write_config_if_else "$REGISTER_NAME" 'registerName' ''
|
write_config_if_else "$REGISTER_NAME" 'registerName' ''
|
||||||
write_config_if_else "$BANDWIDTH" 'bandwidth' ''
|
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 "$DATABASE" ] && [ "$DATABASE" == "MYSQL" ]; then
|
||||||
if [ ! -z "$DB_NAME" ] && [ ! -z "$DB_HOST" ]; then
|
if [ ! -z "$DB_NAME" ] && [ ! -z "$DB_HOST" ]; then
|
||||||
write_config 'dbdriver' 'QMYSQL'
|
write_config 'dbdriver' 'QMYSQL'
|
||||||
|
Reference in New Issue
Block a user