From 815ff046ff723bd48ca08cd3c22b326d44369ddf Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Fri, 7 Feb 2025 16:25:34 +0100 Subject: [PATCH] chore: mention nginx mapping in asgi documentation Co-authored-by: David Larlet --- docs/deploy/asgi.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/deploy/asgi.md b/docs/deploy/asgi.md index 1b797e7e..0acfb7e8 100644 --- a/docs/deploy/asgi.md +++ b/docs/deploy/asgi.md @@ -22,6 +22,15 @@ location / { } ``` +Also add this mapping for the `$connection_upgrade` variable: + +``` +map $http_upgrade $connection_upgrade { + default upgrade; + '' close; +} +``` + ## Uvicorn Uvicorn must be installed in the umap virtualenv: