Merge branch 'patch-2' of https://github.com/PhoenixDiscord/lms into develop

This commit is contained in:
emeric
2020-07-23 19:21:04 +02:00
+3 -1
View File
@@ -185,6 +185,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.
@@ -208,7 +210,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;
}
}