Last active
February 28, 2017 08:07
-
-
Save martastain/cfb54aac992a393c0d306b459751dce6 to your computer and use it in GitHub Desktop.
nginx dash/hls cache
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
@reboot mkdir -p /mnt/cache/origin_dash && chown www-data:www-data /mnt/cache/origin_dash | |
@reboot mkdir -p /mnt/cache/origin_hls && chown www-data:www-data /mnt/cache/origin_hls | |
*/5 * * * * find /mnt/cache/origin_dash -not -name "*init*" -not -name "*raw*" -mmin +5 -type f -exec rm -f {} \; | |
*/5 * * * * find /mnt/cache/origin_hls -maxdepth 1 -mmin +5 -type f -exec rm -f {} \; |
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
tmpfs /mnt/cache tmpfs nodev,nosuid,noexec,nodiratime,size=4092M 0 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment