mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-04-19 20:09:16 +00:00
libresonic: update doc
This commit is contained in:
parent
afdb943da2
commit
4e5b735525
@ -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
|
||||
|
||||
|
@ -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://;
|
||||
}
|
||||
```
|
||||
|
@ -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 \
|
||||
|
Loading…
x
Reference in New Issue
Block a user