Here’s a script to disable http/2 so you can do the upgrade when it’s more convenient. I used it fo a bunch of servers, but you should check for yourself.
#!/usr/bin/env bash
# Temporary: turn off nginx http2 in running Discourse containers, no rebuild.
# Usage: bin/disable-http2-live user@host [user@host ...]
# xargs bin/disable-http2-live < hosts.txt
# Lost on rebuild; the after_ssl hook in the container yml covers that.
# Delete this script once a patched release is out.
for host in "$@"; do
echo "== $host"
ssh -o BatchMode=yes -o ConnectTimeout=10 "$host" sudo bash -s <<'EOF' || echo "FAILED: $host"
set -e
files="/etc/runit/1.d/install-ssl /etc/nginx/conf.d/outlets/server/20-https.conf"
# Containers publishing 443 without these files (traefik etc.) are left alone.
for c in $(docker ps --filter publish=443 --format '{{.Names}}'); do
docker exec "$c" sh -c "grep -qs 'http2 on;' $files || { echo '$c: nothing to do'; exit 0; }
sed -i 's/http2 on;/http2 off;/' $files && nginx -t && sv reload nginx && echo '$c: patched'"
done
EOF
done