From 98cfaa0f2a1af1b140d507aaa66d4cee7acec31d Mon Sep 17 00:00:00 2001 From: LCD <37777903+PhoenixDiscord@users.noreply.github.com> Date: Thu, 2 Jul 2020 21:12:33 +0200 Subject: [PATCH 1/2] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 2d1b24a0..7782e157 100644 --- a/README.md +++ b/README.md @@ -182,6 +182,8 @@ docroot = "/usr/share/lms/docroot/;/newroot/resources,/newroot/css,/newroot/imag deploy-path = "/newroot/"; # ending slash is important ``` +If you use nginx as a reverse proxy, you can simply replace `location /` with `location /newroot/` to achieve the same result. + ### Reverse proxy settings _LMS_ is shipped with an embedded web server, but it is recommended to deploy behind a reverse proxy. You have to set the _behind-reverse-proxy_ option to _true_ in the `lms.conf` configuration file. From 3f2eca38dff4307c71f75935b9ccc81d248440fd Mon Sep 17 00:00:00 2001 From: LCD <37777903+PhoenixDiscord@users.noreply.github.com> Date: Wed, 22 Jul 2020 16:40:40 +0200 Subject: [PATCH 2/2] fixed the blank page issue --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7782e157..d9161295 100644 --- a/README.md +++ b/README.md @@ -207,7 +207,7 @@ server { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; - proxy_pass http://localhost:5082; + proxy_pass http://localhost:5082/; proxy_read_timeout 120; } }