mirror of
https://github.com/YunoHost-Apps/mumble-web_ynh.git
synced 2024-09-03 19:46:16 +02:00
commit
f3d11d19f5
10 changed files with 74 additions and 64 deletions
12
README.md
12
README.md
|
@ -19,7 +19,7 @@ Web interface for voice chat software (VoIP)
|
||||||
|
|
||||||
**Shipped version:** 1.3.0~ynh1
|
**Shipped version:** 1.3.0~ynh1
|
||||||
|
|
||||||
|
**Demo:** https://web.mumble.framatalk.org/
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
|
|
||||||
|
@ -27,12 +27,18 @@ Web interface for voice chat software (VoIP)
|
||||||
|
|
||||||
## Disclaimers / important information
|
## Disclaimers / important information
|
||||||
|
|
||||||
#### Setup
|
## Setup
|
||||||
|
|
||||||
|
Various configuration options are available for Mumble web on this configuration file `/var/www/mumble-web/dist/config.local.js`
|
||||||
|
|
||||||
|
### Documentation
|
||||||
|
|
||||||
|
- Framasoft documentation: https://docs.framasoft.org/fr/jitsimeet/mumble.html
|
||||||
|
|
||||||
## Documentation and resources
|
## Documentation and resources
|
||||||
|
|
||||||
* Official app website: https://mumble.info
|
* Official app website: https://mumble.info
|
||||||
* Official admin documentation: https://github.com/Johni0702/mumble-web/
|
* Official admin documentation: https://docs.framasoft.org/fr/jitsimeet/mumble.html
|
||||||
* Upstream app code repository: https://github.com/Johni0702/mumble-web/
|
* Upstream app code repository: https://github.com/Johni0702/mumble-web/
|
||||||
* YunoHost documentation for this app: https://yunohost.org/app_mumble-web
|
* YunoHost documentation for this app: https://yunohost.org/app_mumble-web
|
||||||
* Report a bug: https://github.com/YunoHost-Apps/mumble-web_ynh/issues
|
* Report a bug: https://github.com/YunoHost-Apps/mumble-web_ynh/issues
|
||||||
|
|
10
README_fr.md
10
README_fr.md
|
@ -15,7 +15,7 @@ Interface web interface pour voix sur IP (VoIP)
|
||||||
|
|
||||||
**Version incluse :** 1.3.0~ynh1
|
**Version incluse :** 1.3.0~ynh1
|
||||||
|
|
||||||
|
**Démo :** https://web.mumble.framatalk.org/
|
||||||
|
|
||||||
## Captures d'écran
|
## Captures d'écran
|
||||||
|
|
||||||
|
@ -25,10 +25,16 @@ Interface web interface pour voix sur IP (VoIP)
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
|
Diverses options de configuration sont disponibles pour Mumble web sur ce fichier de configuration `/var/www/mumble-web/dist/config.local.js`
|
||||||
|
|
||||||
|
## Documentation
|
||||||
|
|
||||||
|
- documentation Framasoft : https://docs.framasoft.org/fr/jitsimeet/mumble.html
|
||||||
|
|
||||||
## Documentations et ressources
|
## Documentations et ressources
|
||||||
|
|
||||||
* Site officiel de l'app : https://mumble.info
|
* Site officiel de l'app : https://mumble.info
|
||||||
* Documentation officielle de l'admin : https://github.com/Johni0702/mumble-web/
|
* Documentation officielle de l'admin : https://docs.framasoft.org/fr/jitsimeet/mumble.html
|
||||||
* Dépôt de code officiel de l'app : https://github.com/Johni0702/mumble-web/
|
* Dépôt de code officiel de l'app : https://github.com/Johni0702/mumble-web/
|
||||||
* Documentation YunoHost pour cette app : https://yunohost.org/app_mumble-web
|
* Documentation YunoHost pour cette app : https://yunohost.org/app_mumble-web
|
||||||
* Signaler un bug : https://github.com/YunoHost-Apps/mumble-web_ynh/issues
|
* Signaler un bug : https://github.com/YunoHost-Apps/mumble-web_ynh/issues
|
||||||
|
|
|
@ -10,34 +10,34 @@ let config = window.mumbleWebConfig // eslint-disable-line no-unused-vars
|
||||||
|
|
||||||
|
|
||||||
// Which fields to show on the Connect to Server dialog
|
// Which fields to show on the Connect to Server dialog
|
||||||
config.connectDialog.address : 'false'
|
config.connectDialog.address = false
|
||||||
config.connectDialog.port : 'false'
|
config.connectDialog.port = false
|
||||||
config.connectDialog.token : 'false'
|
config.connectDialog.token = true
|
||||||
// config.connectDialog.username : 'true'
|
// config.connectDialog.username = true
|
||||||
// config.connectDialog.password : 'true'
|
config.connectDialog.password = false
|
||||||
// config.connectDialog.channelName : 'false'
|
// config.connectDialog.channelName = false
|
||||||
|
|
||||||
// Default values for user settings
|
// Default values for user settings
|
||||||
// You can see your current value by typing `localStorage.getItem('mumble.$setting')` in the web console.
|
// You can see your current value by typing `localStorage.getItem('mumble.$setting')` in the web console.
|
||||||
// config.settings.voiceMode : 'vad' // one of 'cont' (Continuous), 'ptt' (Push-to-Talk), 'vad' (Voice Activity Detection)
|
// config.settings.voiceMode = 'vad' // one of 'cont' (Continuous), 'ptt' (Push-to-Talk), 'vad' (Voice Activity Detection)
|
||||||
// config.settings.pttKey : 'ctrl + shift'
|
// config.settings.pttKey = 'ctrl + shift'
|
||||||
// config.settings.vadLevel : '0.3'
|
// config.settings.vadLevel = '0.3'
|
||||||
// config.settings.toolbarVertical : 'false'
|
// config.settings.toolbarVertical = false
|
||||||
// config.settings.showAvatars : 'always' // one of 'always', 'own_channel', 'linked_channel', 'minimal_only', 'never'
|
// config.settings.showAvatars = 'always' // one of 'always', 'own_channel', 'linked_channel', 'minimal_only', 'never'
|
||||||
// config.settings.userCountInChannelName : 'false'
|
// config.settings.userCountInChannelName = false
|
||||||
// config.settings.audioBitrate : '40000' // bits per second
|
// config.settings.audioBitrate = '40000' // bits per second
|
||||||
// config.settings.samplesPerPacket : '960'
|
// config.settings.samplesPerPacket = '960'
|
||||||
|
|
||||||
// Default values (can be changed by passing a query parameter of the same name)
|
// Default values (can be changed by passing a query parameter of the same name)
|
||||||
// Connect Dialog
|
// Connect Dialog
|
||||||
// config.defaults.address': window.location.hostname,
|
// config.defaults.address = 'window.location.hostname'
|
||||||
// config.defaults.port : '443'
|
// config.defaults.port = '443'
|
||||||
// config.defaults.token : ''
|
// config.defaults.token = ''
|
||||||
// config.defaults.username': ''
|
// config.defaults.username = ''
|
||||||
// config.defaults.password': '',
|
// config.defaults.password = ''
|
||||||
// config.defaults.joinDialog : 'false' // replace whole dialog with single "Join Conference" button
|
// config.defaults.joinDialog = false // replace whole dialog with single "Join Conference" button
|
||||||
// config.defaults.matrix : 'false' // enable Matrix Widget support (mostly auto-detected; implies 'joinDialog')
|
// config.defaults.matrix = false // enable Matrix Widget support (mostly auto-detected; implies 'joinDialog')
|
||||||
// config.defaults.avatarurl : '' // download and set the user's Mumble avatar to the image at this URL
|
// config.defaults.avatarurl = '' // download and set the user's Mumble avatar to the image at this URL
|
||||||
|
|
||||||
// General
|
// General
|
||||||
config.defaults.theme : 'MetroMumbleDark'
|
config.defaults.theme = 'MetroMumbleDark'
|
||||||
|
|
|
@ -1 +1,7 @@
|
||||||
#### Setup
|
## Setup
|
||||||
|
|
||||||
|
Various configuration options are available for Mumble web on this configuration file `/var/www/mumble-web/dist/config.local.js`
|
||||||
|
|
||||||
|
### Documentation
|
||||||
|
|
||||||
|
- Framasoft documentation: https://docs.framasoft.org/fr/jitsimeet/mumble.html
|
||||||
|
|
|
@ -1 +1,7 @@
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
|
Diverses options de configuration sont disponibles pour Mumble web sur ce fichier de configuration `/var/www/mumble-web/dist/config.local.js`
|
||||||
|
|
||||||
|
## Documentation
|
||||||
|
|
||||||
|
- documentation Framasoft : https://docs.framasoft.org/fr/jitsimeet/mumble.html
|
||||||
|
|
|
@ -11,7 +11,8 @@
|
||||||
"upstream": {
|
"upstream": {
|
||||||
"license": "BSD-3-Clause",
|
"license": "BSD-3-Clause",
|
||||||
"website": "https://mumble.info",
|
"website": "https://mumble.info",
|
||||||
"admindoc": "https://github.com/Johni0702/mumble-web/",
|
"demo": "https://web.mumble.framatalk.org/",
|
||||||
|
"admindoc": "https://docs.framasoft.org/fr/jitsimeet/mumble.html",
|
||||||
"code": "https://github.com/Johni0702/mumble-web/"
|
"code": "https://github.com/Johni0702/mumble-web/"
|
||||||
},
|
},
|
||||||
"license": "BSD-3-Clause",
|
"license": "BSD-3-Clause",
|
||||||
|
@ -31,7 +32,7 @@
|
||||||
{
|
{
|
||||||
"name": "domain",
|
"name": "domain",
|
||||||
"type": "domain",
|
"type": "domain",
|
||||||
"example": "domain.org"
|
"example": "example.com"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "is_public",
|
"name": "is_public",
|
||||||
|
|
|
@ -78,7 +78,7 @@ ynh_system_user_create --username=$app --home_dir="$final_path"
|
||||||
#=================================================
|
#=================================================
|
||||||
# INSTALL Mumble-web
|
# INSTALL Mumble-web
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Installing Mumble Web..." --weight=4
|
ynh_script_progression --message="Setting up source files..." --weight=1
|
||||||
|
|
||||||
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
|
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
|
@ -91,27 +91,17 @@ chown -R $app:www-data "$final_path"
|
||||||
#=================================================
|
#=================================================
|
||||||
# NGINX CONFIGURATION
|
# NGINX CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Configuring NGINX web server..." --weight=1
|
ynh_script_progression --message="Configuring NGINX web server..." --weight=4
|
||||||
|
|
||||||
# Create a dedicated NGINX config
|
# Create a dedicated NGINX config
|
||||||
ynh_add_nginx_config
|
ynh_add_nginx_config
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# ADD A CONFIGURATION
|
|
||||||
#=================================================
|
|
||||||
# ynh_script_progression --message="Adding a configuration file..." --weight=1
|
|
||||||
|
|
||||||
# ynh_add_config --template="../conf/config.local.js" --destination="$final_path/dist/config.local.js"
|
|
||||||
|
|
||||||
# chmod 400 "$final_path/dist/config.local.js"
|
|
||||||
# chown $app "$final_path/dist/config.local.js"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SPECIFIC SETUP
|
# SPECIFIC SETUP
|
||||||
#=================================================
|
#=================================================
|
||||||
# mumble server conf.ini
|
# mumble server conf.ini
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Configuring Mumble Web..." --weight=1
|
ynh_script_progression --message="Configuring Mumble web client..." --weight=1
|
||||||
|
|
||||||
ynh_use_nodejs
|
ynh_use_nodejs
|
||||||
(
|
(
|
||||||
|
@ -122,6 +112,16 @@ ynh_use_nodejs
|
||||||
ls -lah
|
ls -lah
|
||||||
)
|
)
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# ADD A CONFIGURATION
|
||||||
|
#=================================================
|
||||||
|
ynh_script_progression --message="Adding a configuration file..." --weight=1
|
||||||
|
|
||||||
|
ynh_add_config --template="../conf/config.local.js" --destination="$final_path/dist/config.local.js"
|
||||||
|
|
||||||
|
chmod 400 "$final_path/dist/config.local.js"
|
||||||
|
chown $app "$final_path/dist/config.local.js"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP SYSTEMD
|
# SETUP SYSTEMD
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -136,7 +136,7 @@ ynh_add_systemd_config
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
|
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
|
||||||
|
|
||||||
yunohost service add $app --description="Mumble web interface" --log="/var/log/$app/$app.log"
|
yunohost service add $app --description="Mumble web client" --log="/var/log/$app/$app.log"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# START SYSTEMD SERVICE
|
# START SYSTEMD SERVICE
|
||||||
|
|
|
@ -68,14 +68,6 @@ ynh_script_progression --message="Removing NGINX web server configuration..." --
|
||||||
# Remove the dedicated nginx config
|
# Remove the dedicated nginx config
|
||||||
ynh_remove_nginx_config
|
ynh_remove_nginx_config
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# SPECIFIC REMOVE
|
|
||||||
#=================================================
|
|
||||||
# REMOVE OTHER FILES
|
|
||||||
#=================================================
|
|
||||||
|
|
||||||
ynh_secure_remove "/var/log/$app"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALIZATION
|
# GENERIC FINALIZATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -89,7 +89,7 @@ systemctl enable $app.service --quiet
|
||||||
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
|
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
|
||||||
|
|
||||||
# Add Mumble as a YunoHost service
|
# Add Mumble as a YunoHost service
|
||||||
yunohost service add $app --description="Mumble web interface" --log="/var/log/$app/$app.log"
|
yunohost service add $app --description="Mumble web client" --log="/var/log/$app/$app.log"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# START SYSTEMD SERVICE
|
# START SYSTEMD SERVICE
|
||||||
|
|
|
@ -57,14 +57,7 @@ ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
|
||||||
# If final_path doesn't exist, create it
|
# If final_path doesn't exist, create it
|
||||||
if [ -z "$final_path" ]; then
|
if [ -z "$final_path" ]; then
|
||||||
final_path=/var/www/$app
|
final_path=/var/www/$app
|
||||||
ynh_app_setting_set "$app" final_path "$final_path"
|
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
|
||||||
fi
|
|
||||||
|
|
||||||
# Cleaning legacy permissions
|
|
||||||
if ynh_legacy_permissions_exists; then
|
|
||||||
ynh_legacy_permissions_delete_all
|
|
||||||
|
|
||||||
ynh_app_setting_delete --app=$app --key=is_public
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -84,7 +77,7 @@ then
|
||||||
ynh_script_progression --message="Upgrading source files..." --weight=1
|
ynh_script_progression --message="Upgrading source files..." --weight=1
|
||||||
|
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
ynh_setup_source --dest_dir="$final_path" #--keep="$final_path/dist/config.local.js"
|
ynh_setup_source --dest_dir="$final_path" --keep="$final_path/dist/config.local.js"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chmod 750 "$final_path"
|
chmod 750 "$final_path"
|
||||||
|
@ -123,7 +116,7 @@ ynh_add_systemd_config
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Add Mumble as a YunoHost service
|
# Add Mumble as a YunoHost service
|
||||||
yunohost service add $app --description="Mumble web interface" --log="/var/log/$app/$app.log"
|
yunohost service add $app --description="Mumble web client" --log="/var/log/$app/$app.log"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# START SYSTEMD SERVICE
|
# START SYSTEMD SERVICE
|
||||||
|
|
Loading…
Reference in a new issue