From 74b573e41428ebdfe9111c18d23eff467a68099a Mon Sep 17 00:00:00 2001 From: Matt Fisher Date: Mon, 25 Sep 2023 15:23:26 -0600 Subject: [PATCH] Add a warning about an NGINX pitfall and its symptom in HedgeDoc Signed-off-by: Matt Fisher --- docs/content/guides/reverse-proxy.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/content/guides/reverse-proxy.md b/docs/content/guides/reverse-proxy.md index b842e2dc4..6298a4c9d 100644 --- a/docs/content/guides/reverse-proxy.md +++ b/docs/content/guides/reverse-proxy.md @@ -89,6 +89,14 @@ server { ssl_dhparam ssl-dhparams.pem; } ``` + +!!! warning + + NGINX `proxy_pass` directives must NOT have trailing slashes. If the trailing + slashes are present, the browser will not be able to establish a WebSocket + connection to the server, and the editor interface will display an endless loading + animation. + ### Apache You will need these modules enabled: `proxy`, `proxy_http` and `proxy_wstunnel`. Here is an example config snippet: