Skip to content

Commit

Permalink
Increasing nginx config hash size for long domains
Browse files Browse the repository at this point in the history
  • Loading branch information
jtrefke committed Apr 12, 2020
1 parent 7cd458d commit 5431f2f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions installer/install-jitsi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ main() {
log "Install SSL certificate..."; install_ssl_certificate
log "Enable Jitsi user authentication..."; enable_authentication
log "Tweaking Jitsi config..."; tweak_config
log "Tweaking nginx config..."; tweak_nginx_config

log "Ensure Jitsi started..."; ensure_jitsi_started
log "Validate Jitsi install..."; validate_jitsi_install
Expand Down Expand Up @@ -223,6 +224,14 @@ tweak_config() {
"requireDisplayName" "${JITSI_REQUIRE_DISPLAY_NAME}"
}

tweak_nginx_config() {
local fqdn; fqdn=$(get_fully_qualified_hostname)
if [ "${#fqdn}" -gt "47" ]; then
sed -Ei 's/server_names_hash_bucket_size (32|64)/server_names_hash_bucket_size 128/g' \
"/etc/nginx/sites-available/${fqdn}.conf"
fi
}

update_colon_separated_value() {
local file="${1}"
local key="${2}"
Expand Down

0 comments on commit 5431f2f

Please sign in to comment.