libresonic: update doc

This commit is contained in:
Wonderfall 2017-03-13 05:02:19 +01:00
parent afdb943da2
commit 4e5b735525
3 changed files with 18 additions and 5 deletions

View File

@ -2,8 +2,7 @@ FROM alpine:edge
ARG VERSION=6.2.beta1 ARG VERSION=6.2.beta1
ENV UID=991 GID=991 \ ENV UID=991 GID=991
HTTPSPORT=0
WORKDIR /libresonic WORKDIR /libresonic
@ -22,7 +21,7 @@ COPY run.sh /usr/local/bin/run.sh
RUN chmod +x /usr/local/bin/run.sh RUN chmod +x /usr/local/bin/run.sh
EXPOSE 4040 4050 EXPOSE 4040
VOLUME /data /musics /playlists /podcasts VOLUME /data /musics /playlists /podcasts

View File

@ -19,9 +19,24 @@ Libresonic is an open-source web-based media streamer and jukebox. Supports MP3,
#### Port #### Port
- 4040 - 4040
- $HTTS_PORT (example : 4050)
#### Reverse proxy #### Reverse proxy
https://github.com/Wonderfall/dockerfiles/tree/master/reverse https://github.com/Wonderfall/dockerfiles/tree/master/reverse
https://github.com/hardware/mailserver/wiki/Reverse-proxy-configuration 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://;
}
```

View File

@ -14,7 +14,6 @@ java -Xmx256m \
-Dlibresonic.home=/data \ -Dlibresonic.home=/data \
-Dlibresonic.host=0.0.0.0 \ -Dlibresonic.host=0.0.0.0 \
-Dlibresonic.port=4040 \ -Dlibresonic.port=4040 \
-Dlibresonic.httpsPort=$HTTPSPORT \
-Dlibresonic.contextPath=/ \ -Dlibresonic.contextPath=/ \
-Dlibresonic.defaultMusicFolder=/musics \ -Dlibresonic.defaultMusicFolder=/musics \
-Dlibresonic.defaultPodcastFolder=/podcasts \ -Dlibresonic.defaultPodcastFolder=/podcasts \