# Nginx2root : http2 is on by default in the standard container. What's the plan?

**URL:** <https://meta.discourse.org/t/nginx2root-http2-is-on-by-default-in-the-standard-container-whats-the-plan/417762>\
**Category:** Self-hosting\
**Created:** [18 november 2026 om 19:21 UTC](https://meta.discourse.org/t/nginx2root-http2-is-on-by-default-in-the-standard-container-whats-the-plan/417762 "2026-11-18T19:21:32Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [19 november 2026 om 00:02 UTC](https://meta.discourse.org/t/nginx2root-http2-is-on-by-default-in-the-standard-container-whats-the-plan/417762/3 "2026-11-19T00:02:33Z")

</div>

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.

```bash
#!/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

```

---

_[View the full topic](https://meta.discourse.org/t/nginx2root-http2-is-on-by-default-in-the-standard-container-whats-the-plan/417762)._
