airsonic: use luug media, nginx: add airsonic & plex + minor formatting

master
Paul Walko 2019-08-25 23:24:08 -04:00
parent 62bfe66985
commit 8ed8fcf353
5 changed files with 61 additions and 2 deletions

View File

@ -13,5 +13,6 @@ docker run \
--volume /bigdata/media/music:/media/music:ro \
--volume /bigdata/media/playlists:/media/playlists \
--volume /bigdata/media/podcasts:/media/podcasts:ro \
--volume /media-vtluug:/media/media-vtluug:ro \
--network pew-net \
linuxserver/airsonic:latest

View File

@ -0,0 +1,29 @@
server {
listen 80;
listen [::]:80;
server_name airsonic.seaturtle.pw;
return 301 https://airsonic.seaturtle.pw$request_uri;
}
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name airsonic.seaturtle.pw;
# ssl conf
include /config/nginx/ssl.conf;
# Proxy airsonic
# https://airsonic.github.io/docs/proxy/nginx/
location / {
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 X-Forwarded-Host $http_host;
proxy_set_header Host $http_host;
proxy_max_temp_file_size 0;
proxy_pass http://airsonic:4040;
proxy_redirect http:// https://;
}
}

View File

@ -0,0 +1,29 @@
server {
listen 80;
listen [::]:80;
server_name plex.seaturtle.pw;
return 301 https://plex.seaturtle.pw$request_uri;
}
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name plex.seaturtle.pw;
# ssl conf
include /config/nginx/ssl.conf;
# Proxy plex
# https://old.reddit.com/r/PleX/comments/3xz4ph/plex_behind_a_ssl_nginx_reverse_proxy/
# Use IP of docker interface on docker host since plex runs in host mode
location / {
proxy_pass http://172.17.0.1:32400;
proxy_read_timeout 240;
proxy_redirect off;
proxy_buffering off;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
}
}

View File

@ -27,7 +27,7 @@ server {
client_max_body_size 1M;
# Main site
# Proxy main site
location / {
proxy_pass https://paulwalko.github.io;
}

View File

@ -13,5 +13,5 @@ docker run \
--volume /bigdata/media/movies:/media/movies:ro \
--volume /bigdata/media/music:/media/music:ro \
--volume /media-vtluug:/media/media-vtluug:ro \
--network pew-net \
--network host \
linuxserver/plex:latest