From 743f30fe6bf6924b16a3a1c5cf6b3a9cd50f54b9 Mon Sep 17 00:00:00 2001 From: Francis Date: Sun, 22 May 2022 21:34:01 +0200 Subject: [PATCH] update guide --- files/sysadmin_guide.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/files/sysadmin_guide.md b/files/sysadmin_guide.md index 41bbdfd1c..bf26f9d31 100644 --- a/files/sysadmin_guide.md +++ b/files/sysadmin_guide.md @@ -386,12 +386,13 @@ server { try_files $uri $uri/ =404; } - location = /api { - return 302 /api/; - } - location /api/ { + rewrite ^/api/(.*)$ /$1 break; proxy_pass http://backend/; + + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; } } ```