Actualizo master con últimos cambios de Slavipull/576/head
| @@ -81,6 +81,47 @@ matrix_jitsi_jvb_container_extra_arguments: | |||||
| - '--env "DOCKER_HOST_ADDRESS=<Local IP adress of the host>"' | - '--env "DOCKER_HOST_ADDRESS=<Local IP adress of the host>"' | ||||
| ``` | ``` | ||||
| ## (Optional) Fine tune Jitsi | |||||
| You may want to suspend unused video layers until they are requested again, to save up resources on both server and clients. | |||||
| Read more on this feature [here](https://jitsi.org/blog/new-off-stage-layer-suppression-feature/) | |||||
| For this add this line to your `inventory/host_vars/matrix.DOMAIN/vars.yml` configuration: | |||||
| ```yaml | |||||
| matrix_jitsi_web_config_enableLayerSuspension: true | |||||
| ``` | |||||
| You may wish to disable audio levels to avoid excessive refresh of the client-side page and decrease the CPU consumption involved. | |||||
| For this add this line to your `inventory/host_vars/matrix.DOMAIN/vars.yml` configuration: | |||||
| ```yaml | |||||
| matrix_jitsi_web_config_disableAudioLevels: true | |||||
| ``` | |||||
| You may want to limit the number of video feeds forwarded to each client, to save up resources on both server and clients. As clients’ bandwidth and CPU may not bear the load, use this setting to avoid lag and crashes. | |||||
| This feature is found by default in other webconference applications such as Office 365 Teams (limit is set to 4). | |||||
| Read how it works [here](https://github.com/jitsi/jitsi-videobridge/blob/master/doc/last-n.md) and performance evaluation on this [study](https://jitsi.org/wp-content/uploads/2016/12/nossdav2015lastn.pdf) | |||||
| For this add this line to your `inventory/host_vars/matrix.DOMAIN/vars.yml` configuration: | |||||
| ```yaml | |||||
| matrix_jitsi_web_config_channelLastN: 4 | |||||
| ``` | |||||
| To enable the variables that allow you to manage the video configuration you must add the following line to your `inventory/host_vars/matrix.DOMAIN/vars.yml` configuration: | |||||
| ```yaml | |||||
| matrix_jitsi_web_config_constraints_enabled: true | |||||
| ``` | |||||
| You may want to limit the maximum video resolution, to save up resources on both server and clients. | |||||
| For example, to set resolution to 480. | |||||
| For this add this two lines to your `inventory/host_vars/matrix.DOMAIN/vars.yml` configuration: | |||||
| ```yaml | |||||
| matrix_jitsi_web_config_constraints_video_height_ideal: 480 | |||||
| matrix_jitsi_web_config_constraints_video_height_max: 480 | |||||
| ``` | |||||
| ## Apply changes | ## Apply changes | ||||
| Then re-run the playbook: `ansible-playbook -i inventory/hosts setup.yml --tags=setup-all,start` | Then re-run the playbook: `ansible-playbook -i inventory/hosts setup.yml --tags=setup-all,start` | ||||
| @@ -232,6 +232,8 @@ matrix_mautrix_hangouts_appservice_token: "{{ matrix_synapse_macaroon_secret_key | |||||
| matrix_mautrix_hangouts_homeserver_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'ho.hs.token') | to_uuid }}" | matrix_mautrix_hangouts_homeserver_token: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'ho.hs.token') | to_uuid }}" | ||||
| matrix_mautrix_hangouts_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:9007' }}" | |||||
| matrix_mautrix_hangouts_login_shared_secret: "{{ matrix_synapse_ext_password_provider_shared_secret_auth_shared_secret if matrix_synapse_ext_password_provider_shared_secret_auth_enabled else '' }}" | matrix_mautrix_hangouts_login_shared_secret: "{{ matrix_synapse_ext_password_provider_shared_secret_auth_shared_secret if matrix_synapse_ext_password_provider_shared_secret_auth_enabled else '' }}" | ||||
| ###################################################################### | ###################################################################### | ||||
| @@ -20,6 +20,11 @@ matrix_mautrix_hangouts_homeserver_address: 'http://matrix-synapse:8008' | |||||
| matrix_mautrix_hangouts_homeserver_domain: '{{ matrix_domain }}' | matrix_mautrix_hangouts_homeserver_domain: '{{ matrix_domain }}' | ||||
| matrix_mautrix_hangouts_appservice_address: 'http://matrix-mautrix-hangouts:8080' | matrix_mautrix_hangouts_appservice_address: 'http://matrix-mautrix-hangouts:8080' | ||||
| # Controls whether the matrix-mautrix-hangouts container exposes its HTTP port (tcp/8080 in the container). | |||||
| # | |||||
| # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:9007"), or empty string to not expose. | |||||
| matrix_mautrix_hangouts_container_http_host_bind_port: '' | |||||
| # A list of extra arguments to pass to the container | # A list of extra arguments to pass to the container | ||||
| matrix_mautrix_hangouts_container_extra_arguments: [] | matrix_mautrix_hangouts_container_extra_arguments: [] | ||||
| @@ -30,6 +30,9 @@ ExecStart={{ matrix_host_command_docker }} run --rm --name matrix-mautrix-hangou | |||||
| --user={{ matrix_user_uid }}:{{ matrix_user_gid }} \ | --user={{ matrix_user_uid }}:{{ matrix_user_gid }} \ | ||||
| --cap-drop=ALL \ | --cap-drop=ALL \ | ||||
| --network={{ matrix_docker_network }} \ | --network={{ matrix_docker_network }} \ | ||||
| {% if matrix_mautrix_hangouts_container_http_host_bind_port %} | |||||
| -p {{ matrix_mautrix_hangouts_container_http_host_bind_port }}:8080 \ | |||||
| {% endif %} | |||||
| -v {{ matrix_mautrix_hangouts_config_path }}:/config:z \ | -v {{ matrix_mautrix_hangouts_config_path }}:/config:z \ | ||||
| -v {{ matrix_mautrix_hangouts_data_path }}:/data:z \ | -v {{ matrix_mautrix_hangouts_data_path }}:/data:z \ | ||||
| {% for arg in matrix_mautrix_hangouts_container_extra_arguments %} | {% for arg in matrix_mautrix_hangouts_container_extra_arguments %} | ||||
| @@ -26,7 +26,7 @@ matrix_mautrix_telegram_homeserver_domain: '{{ matrix_domain }}' | |||||
| matrix_mautrix_telegram_appservice_address: 'http://matrix-mautrix-telegram:8080' | matrix_mautrix_telegram_appservice_address: 'http://matrix-mautrix-telegram:8080' | ||||
| matrix_mautrix_telegram_appservice_public_external: 'https://{{ matrix_server_fqn_matrix }}{{ matrix_mautrix_telegram_public_endpoint }}' | matrix_mautrix_telegram_appservice_public_external: 'https://{{ matrix_server_fqn_matrix }}{{ matrix_mautrix_telegram_public_endpoint }}' | ||||
| # Controls whether the matrix-telegram container exposes its HTTP port (tcp/8080 in the container). | |||||
| # Controls whether the matrix-mautrix-telegram container exposes its HTTP port (tcp/8080 in the container). | |||||
| # | # | ||||
| # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:9006"), or empty string to not expose. | # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:9006"), or empty string to not expose. | ||||
| matrix_mautrix_telegram_container_http_host_bind_port: '' | matrix_mautrix_telegram_container_http_host_bind_port: '' | ||||