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"; } } ```