This is my own location that I used to store my scripts for my home Linux server. This is configured for my setup, but welcome any questions.
- Verizon Gigabit FIOS
- Google Drive with an Encrypted Media Folder
- Debian Stretch 9.5
- Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz
- 32 GB of Memory
- 250 GB SSD Storage for my root
- 6TB mirrored for staging
- rTorrent, NZBGet, Sonarr, Radarr and Ombi all run locally on my mergerfs mount that allows hard linking of files.
For all my private traffic, I use TorGuard as they support port forwarding and have very good support.
I use a combination of mergerfs and rclone to keep a local mount that is always written to first and my second mount point is my rclone Google Drive.
/data/local (local disk)
/GD (rclone mount)
/gmedia
They all get mounted up via my systemd scripts for gmedia-service.
My gmedia starts up items in order:
- rclone mount
- mergerfs mount
- find command which justs caches the directory and file structure and provides me an output of the structure
I use mergerfs over unionfs as it provides me the ability to define a file system to always write first to.
I use the following options:
Options = use_ino,hard_remove,auto_cache,sync_read,allow_other,category.action=all,category.create=ff
Two important items:
- sync_read as rclone is default built with this and is required for proper streaming
- category.action=all,category.create=ff says to always create directories / files on the first listed mount point and for my configuration that is my /data/mounts/local
I moved my files to my GD every ngiht via a cron job and an upload cloud script. This leverages an excludes file which gets rid of partials and my torrent directory.
I use Caddy as a proxy server and route all my items through it. I build via this script.
My plex configuration in my CaddyFile as follows:
# Plex Server
plex.animosity.us {
gzip
timeouts 1h
log /opt/caddy/logs/plex.log
tls {
dns cloudflare
}
proxy / 127.0.0.1:32400 {
transparent
websocket
keepalive 12
timeout 1h
}
}
- Plex Playback
- Apple TV (4th generation)
- Direct Play Stuttering
- This happens on both vfs-read-chunk-size and cache. Cache masks this more so since the chunks remain local. If you turn off "Allow Direct Play", this will fix the issue as it will Direct Stream instead. Using another player such as Infuse / Emby works as well as they do not exihibit the Direct Play issue. I will retest this once TVOS 12 hits to see if it has been fixed or not.
- RClone debug log shows the files being rapidly opened and closed as the client seems to request part of the file and close it out.
- Another work around that seems to be going well for me is using Caddy as a proxy server.
- Direct Play Stuttering
- Apple TV (4th generation)