Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initial setup: env, settings, headers #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions env.example
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@
#

# XMPP password for Jicofo client connections
JICOFO_AUTH_PASSWORD=
JICOFO_AUTH_PASSWORD=854ea66ee92fcf465f70bda005a3a8c2

# XMPP password for JVB client connections
JVB_AUTH_PASSWORD=
JVB_AUTH_PASSWORD=3fac06ba2e3a1156df90867b9e3be7d3

# XMPP password for Jigasi MUC client connections
JIGASI_XMPP_PASSWORD=
JIGASI_XMPP_PASSWORD=5f3b6fd1c053748ef2d09110f9465f24

# XMPP recorder password for Jibri client connections
JIBRI_RECORDER_PASSWORD=
JIBRI_RECORDER_PASSWORD=1906e0a852a006054fe2394f5114e00e

# XMPP password for Jibri client connections
JIBRI_XMPP_PASSWORD=
JIBRI_XMPP_PASSWORD=504ad9194d68baa660c9f57e4e8fa046


#
Expand All @@ -41,6 +41,9 @@ HTTPS_PORT=8443
# System time zone
TZ=UTC


ENABLE_XMPP_WEBSOCKET=1

# Public URL for the web service (required)
#PUBLIC_URL=https://meet.example.com

Expand Down Expand Up @@ -365,7 +368,7 @@ JIBRI_LOGS_DIR=/config/logs
# TURNS_PORT=443

# Disable HTTPS: handle TLS connections outside of this setup
#DISABLE_HTTPS=1
# DISABLE_HTTPS=1

# Enable FLoC
# Opt-In to Federated Learning of Cohorts tracking
Expand Down
1 change: 1 addition & 0 deletions prosody/rootfs/defaults/conf.d/jitsi-meet.cfg.lua
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ consider_bosh_secure = true;
{{ $XMPP_CROSS_DOMAIN := .Env.XMPP_CROSS_DOMAIN | default "" }}
{{ if eq $XMPP_CROSS_DOMAIN "true"}}
cross_domain_websocket = true
consider_websocket_secure = true;
cross_domain_bosh = true
{{ else }}
{{ if not (eq $XMPP_CROSS_DOMAIN "false") }}
Expand Down
10 changes: 10 additions & 0 deletions web/rootfs/defaults/meet.conf
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,27 @@ location = /http-bind {

{{ if $ENABLE_XMPP_WEBSOCKET }}
# xmpp websockets

location = /xmpp-websocket {
proxy_pass {{ .Env.XMPP_BOSH_URL_BASE }}/xmpp-websocket;
proxy_http_version 1.1;

add_header 'x-jitsi-shard' 'shard';
add_header 'x-jitsi-region' 'us-east-2a';
add_header 'Access-Control-Expose-Headers' 'X-Jitsi-Shard, X-Jitsi-Region';

proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;

proxy_set_header Connection "upgrade";
proxy_set_header Upgrade $http_upgrade;

proxy_set_header Host {{ .Env.XMPP_DOMAIN }};
proxy_set_header X-Forwarded-For $remote_addr;
tcp_nodelay on;
}

{{ end }}

location ~ ^/([^/?&:'"]+)$ {
Expand Down