Last active
August 29, 2015 14:10
-
-
Save fliiiix/fbf9248e74b3e3cd758c to your computer and use it in GitHub Desktop.
Plex FreeBSD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cat /etc/fstab.ymir_l33t_lan | |
/usr/jails/basejail /usr/jails/ymir.l33t.lan/basejail nullfs ro 0 0 | |
/tank/movies /usr/jails/ymir.l33t.lan/media/movies nullfs rw 0 0 | |
/tank/music /usr/jails/ymir.l33t.lan/media/music nullfs rw 0 0 | |
/tank/series /usr/jails/ymir.l33t.lan/media/series nullfs rw 0 0 | |
/tank/data/Photo/Handy-Sync-plex /usr/jails/ymir.l33t.lan/media/Handy-Sync-plex nullfs rw 0 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hostname: ymir.l33t.lan | |
ip: 192.168.1.12 | |
PKG list | |
vim-lite | |
nginx | |
plexmediaserver-plexpass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cat /usr/local/etc/nginx/nginx.conf | |
#user nobody; | |
worker_processes 2; | |
#error_log logs/error.log; | |
#error_log logs/error.log notice; | |
#error_log logs/error.log info; | |
#pid logs/nginx.pid; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
include mime.types; | |
default_type application/octet-stream; | |
#log_format main '$remote_addr - $remote_user [$time_local] "$request" ' | |
# '$status $body_bytes_sent "$http_referer" ' | |
# '"$http_user_agent" "$http_x_forwarded_for"'; | |
#access_log logs/access.log main; | |
sendfile on; | |
#tcp_nopush on; | |
#keepalive_timeout 0; | |
keepalive_timeout 65; | |
#gzip on; | |
server { | |
listen 80; | |
server_name ymir | |
ymir.l33t.lan; | |
#charset koi8-r; | |
#access_log logs/host.access.log main; | |
location / { | |
# if a request to / comes in, 301 redirect to the main plex page. | |
# but only if it doesn't contain the X-Plex-Device-Name header | |
# this fixes a bug where you get permission issues when accessing the web dashboard | |
if ($http_x_plex_device_name = '') { | |
rewrite ^/$ http://$http_host/web/index.html; | |
} | |
# set some headers and proxy stuff. | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_redirect off; | |
# include Host header | |
proxy_set_header Host $http_host; | |
# proxy request to plex server | |
proxy_pass http://localhost:32400; | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# cat /etc/rc.conf | |
plexmediaserver_plexpass_enable="YES" | |
plexmediaserver_plexpass_support_path="/usr/local/plexdata-plexpass" # Plex data: logs, media metadata, settings, etc | |
plexmediaserver_plexpass_tmp="/var/tmp/plex" # configure tmp directory used for the transcoding process if desired | |
plexmediaserver_plexpass_maxplugins="6" # Maximum number of background plugin procs. May have to raise in rare cases. | |
nginx_enable="YES" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment