Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
nginx: Switch from `$host` to `$http_host` for HTTP/3 compatibility.
n00992b1d25015404
diff --git a/docs/production/deployment.md b/docs/production/deployment.mdindex f72120dab87..3cfcb2f18c0 100644--- a/docs/production/deployment.md+++ b/docs/production/deployment.md@@ -483,7 +483,7 @@ that your Zulip server sits at `https://10.10.10.10:443`; seelocation / {proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;proxy_set_header X-Forwarded-Proto $scheme;- proxy_set_header Host $http_host;+ proxy_set_header Host $host;proxy_http_version 1.1;proxy_buffering off;proxy_read_timeout 20m;diff --git a/scripts/lib/sharding.py b/scripts/lib/sharding.pyindex 878dc860945..6107a54d365 100755--- a/scripts/lib/sharding.py+++ b/scripts/lib/sharding.py@@ -44,7 +44,7 @@ def write_updated_configs() -> None:sharding_json_f.write("{}\n")return- nginx_sharding_conf_f.write("map $http_host $tornado_server {\n")+ nginx_sharding_conf_f.write("map $host $tornado_server {\n")nginx_sharding_conf_f.write(" default http://tornado9800;\n")shard_map: Dict[str, Union[int, List[int]]] = {}shard_regexes: List[Tuple[str, Union[int, List[int]]]] = []