airsonic: use luug media, nginx: add airsonic & plex + minor formatting
parent
62bfe66985
commit
8ed8fcf353
|
@ -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
|
||||
|
|
|
@ -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://;
|
||||
}
|
||||
}
|
|
@ -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;
|
||||
}
|
||||
}
|
|
@ -27,7 +27,7 @@ server {
|
|||
|
||||
client_max_body_size 1M;
|
||||
|
||||
# Main site
|
||||
# Proxy main site
|
||||
location / {
|
||||
proxy_pass https://paulwalko.github.io;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue