1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/jitsi_ynh.git synced 2024-09-03 19:35:57 +02:00

add some config files

This commit is contained in:
Kay0u 2020-12-16 18:30:15 +01:00
parent 920d50f776
commit fbad5b143a
No known key found for this signature in database
GPG key ID: AAFEEB16CFA2AE2D
4 changed files with 50 additions and 15 deletions

View file

@ -0,0 +1,3 @@
#available options, syntax, and default values.
jicofo {
}

View file

@ -0,0 +1,12 @@
videobridge {
http-servers {
public {
port = 9090
}
}
websockets {
enabled = true
domain = "__DOMAIN__:443"
tls = true
}
}

View file

@ -20,15 +20,18 @@ location ~ ^/(libs|css|static|images|fonts|lang|sounds|connection_optimization|.
{ {
add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Origin' '*';
alias __FINALPATH__/jitsi-meet-web/$1/$2; alias __FINALPATH__/jitsi-meet-web/$1/$2;
# cache all versioned files
if ($arg_v) {
expires 1y;
}
} }
# BOSH # BOSH
location = /http-bind { location = /http-bind {
proxy_pass http://127.0.0.1:5290/http-bind; proxy_pass http://127.0.0.1:5290/http-bind;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Forwarded-For $remote_addr;
proxy_buffering off; proxy_set_header Host $http_host;
tcp_nodelay on;
} }
# xmpp websockets # xmpp websockets
@ -41,6 +44,15 @@ location = /xmpp-websocket {
tcp_nodelay on; tcp_nodelay on;
} }
# colibri (JVB) websockets for jvb1
location ~ ^/colibri-ws/default-id/(.*) {
proxy_pass http://127.0.0.1:9090/colibri-ws/default-id/$1$is_args$args;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
tcp_nodelay on;
}
location ~ ^/([^/?&:'"]+)$ { location ~ ^/([^/?&:'"]+)$ {
try_files $uri @root_path; try_files $uri @root_path;
} }
@ -51,10 +63,10 @@ location @root_path {
location ~ ^/([^/?&:'"]+)/config.js$ location ~ ^/([^/?&:'"]+)/config.js$
{ {
set $subdomain "$1."; set $subdomain "$1.";
set $subdir "$1/"; set $subdir "$1/";
alias /etc/__NAME__/meet/__DOMAIN__-config.js; alias /etc/__NAME__/meet/__DOMAIN__-config.js;
} }
#Anything that didn't match above, and isn't a real file, assume it's a room name and redirect to / #Anything that didn't match above, and isn't a real file, assume it's a room name and redirect to /

View file

@ -243,6 +243,10 @@ jitsi_videobridge_20_jvb_udp_buffers_conf="/etc/sysctl.d/20-jvb-udp-buffers.conf
cp ../conf/jitsi-videobridge-20-jvb-udp-buffers.conf "$jitsi_videobridge_20_jvb_udp_buffers_conf" cp ../conf/jitsi-videobridge-20-jvb-udp-buffers.conf "$jitsi_videobridge_20_jvb_udp_buffers_conf"
sysctl --system || true sysctl --system || true
jitsi_videobridge_jvb_conf="/etc/$app/videobridge/jvb.conf"
cp ../conf/jitsi-videobridge-jvb.conf "$jitsi_videobridge_jvb_conf"
ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file="$jitsi_videobridge_jvb_conf"
#================================================= #=================================================
# CONFIGURE JITSI-JICOFO # CONFIGURE JITSI-JICOFO
#================================================= #=================================================
@ -254,18 +258,22 @@ jitsi_jicofo_sip_communicator_conf="/etc/$app/jicofo/sip-communicator.properties
cp ../conf/jitsi-jicofo-sip-communicator.properties "$jitsi_jicofo_sip_communicator_conf" cp ../conf/jitsi-jicofo-sip-communicator.properties "$jitsi_jicofo_sip_communicator_conf"
ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file="$jitsi_jicofo_sip_communicator_conf" ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file="$jitsi_jicofo_sip_communicator_conf"
jitsi_jicofo_conf="/etc/$app/jicofo/config" jitsi_jicofo_config="/etc/$app/jicofo/config"
cp ../conf/jitsi-jicofo.config "$jitsi_jicofo_conf" cp ../conf/jitsi-jicofo.config "$jitsi_jicofo_config"
ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file="$jitsi_jicofo_conf" ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file="$jitsi_jicofo_config"
ynh_replace_string --match_string="__PORT_COMPONENT__" --replace_string="$port_component" --target_file="$jitsi_jicofo_conf" ynh_replace_string --match_string="__PORT_COMPONENT__" --replace_string="$port_component" --target_file="$jitsi_jicofo_config"
ynh_replace_string --match_string="__FOCUS_SECRET__" --replace_string="$focus_secret" --target_file="$jitsi_jicofo_conf" ynh_replace_string --match_string="__FOCUS_SECRET__" --replace_string="$focus_secret" --target_file="$jitsi_jicofo_config"
ynh_replace_string --match_string="__FOCUS_USER__" --replace_string="$focus_user" --target_file="$jitsi_jicofo_conf" ynh_replace_string --match_string="__FOCUS_USER__" --replace_string="$focus_user" --target_file="$jitsi_jicofo_config"
ynh_replace_string --match_string="__FOCUS_PASSWORD__" --replace_string="$focus_password" --target_file="$jitsi_jicofo_conf" ynh_replace_string --match_string="__FOCUS_PASSWORD__" --replace_string="$focus_password" --target_file="$jitsi_jicofo_config"
ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="$jitsi_jicofo_conf" ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="$jitsi_jicofo_config"
jitsi_jicofo_logging_conf="/etc/$app/jicofo/logging.properties" jitsi_jicofo_logging_conf="/etc/$app/jicofo/logging.properties"
cp ../conf/jitsi-jicofo-logging.properties "$jitsi_jicofo_logging_conf" cp ../conf/jitsi-jicofo-logging.properties "$jitsi_jicofo_logging_conf"
jitsi_jicofo_conf="/etc/$app/jicofo/jicofo.conf"
cp ../conf/jitsi-jicofo-jicofo.conf "$jitsi_jicofo_conf"
#================================================= #=================================================
# CONFIGURE JITSI-MEET # CONFIGURE JITSI-MEET
#================================================= #=================================================