From 4e5b735525b8dc9d86c6c6cfd58f21b1554aa2e8 Mon Sep 17 00:00:00 2001 From: Wonderfall Date: Mon, 13 Mar 2017 05:02:19 +0100 Subject: [PATCH] libresonic: update doc --- libresonic/Dockerfile | 5 ++--- libresonic/README.md | 17 ++++++++++++++++- libresonic/run.sh | 1 - 3 files changed, 18 insertions(+), 5 deletions(-) diff --git a/libresonic/Dockerfile b/libresonic/Dockerfile index 5db66a0..ad8bbf1 100644 --- a/libresonic/Dockerfile +++ b/libresonic/Dockerfile @@ -2,8 +2,7 @@ FROM alpine:edge ARG VERSION=6.2.beta1 -ENV UID=991 GID=991 \ - HTTPSPORT=0 +ENV UID=991 GID=991 WORKDIR /libresonic @@ -22,7 +21,7 @@ COPY run.sh /usr/local/bin/run.sh RUN chmod +x /usr/local/bin/run.sh -EXPOSE 4040 4050 +EXPOSE 4040 VOLUME /data /musics /playlists /podcasts diff --git a/libresonic/README.md b/libresonic/README.md index fd48883..75a96db 100644 --- a/libresonic/README.md +++ b/libresonic/README.md @@ -19,9 +19,24 @@ Libresonic is an open-source web-based media streamer and jukebox. Supports MP3, #### Port - 4040 -- $HTTS_PORT (example : 4050) #### Reverse proxy https://github.com/Wonderfall/dockerfiles/tree/master/reverse https://github.com/hardware/mailserver/wiki/Reverse-proxy-configuration + +Libresonic does not support SSL/TLS by itself. If you want to use Libresonic through https, this is what I'm using : + +``` + location / { + proxy_pass http://libresonic:4040; + proxy_set_header X-Forwarded-Host $host; + proxy_set_header X-Forwarded-Server $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto https; + proxy_set_header Host $http_host; + proxy_max_temp_file_size 0; + proxy_redirect http:// https://; + } +``` diff --git a/libresonic/run.sh b/libresonic/run.sh index c9740f9..a496417 100644 --- a/libresonic/run.sh +++ b/libresonic/run.sh @@ -14,7 +14,6 @@ java -Xmx256m \ -Dlibresonic.home=/data \ -Dlibresonic.host=0.0.0.0 \ -Dlibresonic.port=4040 \ - -Dlibresonic.httpsPort=$HTTPSPORT \ -Dlibresonic.contextPath=/ \ -Dlibresonic.defaultMusicFolder=/musics \ -Dlibresonic.defaultPodcastFolder=/podcasts \