From 7c4e1108ae8061ddc57bcf704d71d397fe64db48 Mon Sep 17 00:00:00 2001 From: Oliver Giles Date: Sat, 22 Jan 2022 15:10:26 +1300 Subject: [PATCH] nginx example: trailing slash on proxy_pass argument this causes nginx to substitute the location directive. Makes no difference if hosted at toplevel, but if using a subdirectory, omitting the trailing slash will prevent laminar's http server from finding the resources. --- examples/nginx-ssl-reverse-proxy.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/nginx-ssl-reverse-proxy.conf b/examples/nginx-ssl-reverse-proxy.conf index 6c48ec0..3188148 100644 --- a/examples/nginx-ssl-reverse-proxy.conf +++ b/examples/nginx-ssl-reverse-proxy.conf @@ -38,7 +38,7 @@ server { # fine-grained control of permissions. # see http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_pass # and https://laminar.ohwg.net/docs.html#Running-on-a-different-HTTP-port-or-Unix-socket - proxy_pass http://127.0.0.1:8080; + proxy_pass http://127.0.0.1:8080/; # required to allow laminar's SSE stream to pass correctly proxy_http_version 1.1;