-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Few debian updates #5729
Merged
Few debian updates #5729
Changes from 8 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
41ba6b1
debian: Update coturn udp port to non-privileged one.
damencho 961820b
debian: Turnserver config requires jitsi-meet-web-config files.
damencho 18fd4b3
doc: Updates doc, removing `--no-install-recommends`.
damencho be5414a
debian: Moves checks and configs to default to prosody 0.11.
damencho 48cdc66
debian: Disable room locking on internal muc.
damencho d6b2718
add scripts for deploying coturn with certbot
julienfastre 96a048e
turnserver: Removes unused variable showing error.
damencho d82162c
debian: updates let's encrypt and coturn scripts.
damencho ac893e3
debian: Detect failure to retrieve external ip address.
damencho 1c7531f
debian: Always configure turn when the turnserver package is installed.
damencho File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
doc/debian/jitsi-meet-turn/turnserver.conf /usr/share/jitsi-meet-turnserver/ | ||
doc/debian/jitsi-meet/jitsi-meet.conf /usr/share/jitsi-meet-turnserver/ | ||
doc/debian/jitsi-meet-turn/turnserver.conf /usr/share/jitsi-meet-turnserver/ | ||
doc/debian/jitsi-meet/jitsi-meet.conf /usr/share/jitsi-meet-turnserver/ | ||
doc/debian/jitsi-meet-turn/coturn-certbot-deploy.sh /usr/share/jitsi-meet-turnserver/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,8 @@ muc_mapper_domain_base = "jitmeet.example.com"; | |
turncredentials_secret = "__turnSecret__"; | ||
|
||
turncredentials = { | ||
{ type = "stun", host = "jitmeet.example.com", port = "443" }, | ||
{ type = "turn", host = "jitmeet.example.com", port = "443", transport = "udp" }, | ||
{ type = "stun", host = "jitmeet.example.com", port = "4446" }, | ||
{ type = "turn", host = "jitmeet.example.com", port = "4446", transport = "udp" }, | ||
{ type = "turns", host = "jitmeet.example.com", port = "443", transport = "tcp" } | ||
}; | ||
|
||
|
@@ -43,7 +43,7 @@ VirtualHost "jitmeet.example.com" | |
c2s_require_encryption = false | ||
|
||
Component "conference.jitmeet.example.com" "muc" | ||
storage = "null" | ||
storage = "memory" | ||
modules_enabled = { | ||
"muc_meeting_id"; | ||
"muc_domain_mapper"; | ||
|
@@ -55,11 +55,13 @@ Component "conference.jitmeet.example.com" "muc" | |
|
||
-- internal muc component | ||
Component "internal.auth.jitmeet.example.com" "muc" | ||
storage = "null" | ||
storage = "memory" | ||
modules_enabled = { | ||
"ping"; | ||
} | ||
admins = { "[email protected]", "[email protected]" } | ||
muc_room_locking = false | ||
muc_room_default_public_jids = true | ||
|
||
VirtualHost "auth.jitmeet.example.com" | ||
authentication = "internal_plain" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
COTURN_CERT_DIR="/etc/coturn/certs" | ||
TURN_CONFIG="/etc/turnserver.conf" | ||
|
||
# create a directory to store certs if it does not exists | ||
if [ ! -d "$COTURN_CERT_DIR" ]; then | ||
mkdir -p /etc/coturn/certs | ||
chown -R turnserver:turnserver /etc/coturn/ | ||
chmod -R 700 /etc/coturn/ | ||
fi | ||
|
||
for domain in $RENEWED_DOMAINS; do | ||
case $domain in | ||
jitsi-meet.example.com) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add a comment that this is updated/replaced with the correct domain by the install script? |
||
# Make sure the certificate and private key files are | ||
# never world readable, even just for an instant while | ||
# we're copying them into daemon_cert_root. | ||
umask 077 | ||
|
||
cp "$RENEWED_LINEAGE/fullchain.pem" "$COTURN_CERT_DIR/$domain.fullchain.pem" | ||
cp "$RENEWED_LINEAGE/privkey.pem" "$COTURN_CERT_DIR/$domain.privkey.pem" | ||
|
||
# Apply the proper file ownership and permissions for | ||
# the daemon to read its certificate and key. | ||
chown turnserver "$COTURN_CERT_DIR/$domain.fullchain.pem" \ | ||
"$COTURN_CERT_DIR/$domain.privkey.pem" | ||
chmod 400 "$COTURN_CERT_DIR/$domain.fullchain.pem" \ | ||
"$COTURN_CERT_DIR/$domain.privkey.pem" | ||
|
||
if [ -f $TURN_CONFIG ] && grep -q "jitsi-meet coturn config" "$TURN_CONFIG" ; then | ||
echo "Configuring turnserver" | ||
sed -i "/^cert/c\cert=\/etc\/coturn\/certs\/${domain}.fullchain.pem" $TURN_CONFIG | ||
sed -i "/^pkey/c\pkey=\/etc\/coturn\/certs\/${domain}.privkey.pem" $TURN_CONFIG | ||
fi | ||
service coturn restart | ||
;; | ||
esac | ||
done | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use the variable
COTURN_CERT_DIR
here?