mirror of
https://github.com/YunoHost-Apps/jitsi_ynh.git
synced 2024-09-03 19:35:57 +02:00
activate upnp
This commit is contained in:
parent
b4738ed51a
commit
05da5f3254
3 changed files with 13 additions and 4 deletions
|
@ -77,13 +77,13 @@ ynh_script_progression --message="Finding an available port..."
|
||||||
# Find an available port
|
# Find an available port
|
||||||
port=4443
|
port=4443
|
||||||
# Open this port
|
# Open this port
|
||||||
ynh_exec_warn_less yunohost firewall allow --no-upnp TCP $port
|
ynh_exec_warn_less yunohost firewall allow TCP $port
|
||||||
ynh_app_setting_set --app=$app --key=port --value=$port
|
ynh_app_setting_set --app=$app --key=port --value=$port
|
||||||
|
|
||||||
# Find an available port
|
# Find an available port
|
||||||
port_videobridge=10000
|
port_videobridge=10000
|
||||||
# Open this port
|
# Open this port
|
||||||
ynh_exec_warn_less yunohost firewall allow --no-upnp UDP $port_videobridge
|
ynh_exec_warn_less yunohost firewall allow UDP $port_videobridge
|
||||||
ynh_app_setting_set --app=$app --key=port_videobridge --value=$port_videobridge
|
ynh_app_setting_set --app=$app --key=port_videobridge --value=$port_videobridge
|
||||||
|
|
||||||
# Find an available port
|
# Find an available port
|
||||||
|
|
|
@ -107,8 +107,8 @@ gpasswd --add prosody $app
|
||||||
ynh_script_progression --message="Configuring firewall..."
|
ynh_script_progression --message="Configuring firewall..."
|
||||||
|
|
||||||
# Open this port
|
# Open this port
|
||||||
ynh_exec_warn_less yunohost firewall allow --no-upnp TCP $port
|
ynh_exec_warn_less yunohost firewall allow TCP $port
|
||||||
ynh_exec_warn_less yunohost firewall allow --no-upnp UDP $port_videobridge
|
ynh_exec_warn_less yunohost firewall allow UDP $port_videobridge
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# CONFIGURE PROSODY
|
# CONFIGURE PROSODY
|
||||||
|
|
|
@ -151,6 +151,15 @@ gpasswd --add prosody $app
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SPECIFIC UPGRADE
|
# SPECIFIC UPGRADE
|
||||||
|
#=================================================
|
||||||
|
# CONFIGURE FIREWALL
|
||||||
|
#=================================================
|
||||||
|
ynh_script_progression --message="Configuring firewall..."
|
||||||
|
|
||||||
|
# Open this port
|
||||||
|
ynh_exec_warn_less yunohost firewall allow TCP $port
|
||||||
|
ynh_exec_warn_less yunohost firewall allow UDP $port_videobridge
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# CONFIGURE PROSODY
|
# CONFIGURE PROSODY
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue