From 9292c457c904fdc80ddb7d39fde244637abee600 Mon Sep 17 00:00:00 2001 From: Andrew DeMaria Date: Fri, 20 Jan 2017 21:06:48 -0700 Subject: [PATCH] Updated proxy doc Signed-off-by: Andrew DeMaria --- documentation/PROXY.md | 33 ++++++++++++++++++++------------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/documentation/PROXY.md b/documentation/PROXY.md index b922f6a5..09b8ff02 100644 --- a/documentation/PROXY.md +++ b/documentation/PROXY.md @@ -20,25 +20,32 @@ free. ## Libresonic configuration -A few settings can be tweaked in Libresonic's startup script or Tomcat -configuration. +A few settings should be tweaked via Spring Boot or Tomcat +configuration: -The reverse proxy will handle HTTPS connections, so there is no need for -Libresonic to handle them, which is why we set `httpsPort` to 0: + - Set the context path to `/libresonic` + - Set the correct address to listen to + - Set the correct port to listen to - libresonic.httpsPort=0 +#### Spring Boot -Furthermore, the internal Libresonic server should only be accessible from the -inside of the reverse proxy : we tell Libresonic to listen on the local IP -only: +Add the following java args: - libresonic.host=127.0.0.1 - libresonic.port=4040 +```java -Dserver.port=4040 -Dserver.address=127.0.0.1 -Dserver.contextPath=/libresonic -jar libresonic.war``` -Finally, if Libresonic should be accessible from a subdirectory, the context -path must be set correctly: +#### Tomcat +Modify your `` with the proper address and port: - libresonic.contextPath=/libresonic +``` +