Varnish sample vcl for rtmp / m3u8 stream Rumi, March 18, 2023 vcl 4.0; import std; backend default { .host = "127.0.0.1"; .port = "8090"; } acl purge { "127.0.0.1"; } sub vcl_recv { if(req.method == "PURGE"){ if (!client.ip ~ purge) { return(synth(405,"Not allowed.")); } return (purge); } return (hash); } sub vcl_backend_response { if (bereq.url ~ "m3u8") { # assuming chunks are 2 seconds long set beresp.ttl = 1s; set beresp.grace = 0s; } else { set beresp.ttl = 10m; set beresp.grace = 5m; } } Related Configurations (Linux) Varnishvarnish 4vcl
Upgrade mysql 5.5 to 5.6 in Ubuntu 14 June 2, 2017 While I was installing idoit- the cmdb and IT documenting platform, struggling with a pre-requisite of having mysql version 5.6 which is not shipped by native in ubuntu 14 installations. So had to google it and found some solution, however the one that worked for me which I’m sharing below:… Read More
Get rid of esm-apps while ubuntu updates September 15, 2023 If you ever encounter similar issue like below- Get more security updates through Ubuntu Pro with ‘esm-apps’ enabled: libavformat58 libavfilter7 ffmpeg mc sntp libswresample3 lynx-common libzmq5 fail2ban mc-data redis lynx libpostproc55 ntp ntpdate libgsasl7 redis-tools cpanminus libavcodec58 libavutil56 libavdevice58 libswscale5 libsdl2-2.0-0 libmysofa1 redis-server libavresample4 And don’t like to be financially… Read More
Webmin installation on Centos January 15, 2018 Installing the RPM If you are using the RPM version of Webmin, first download the file from the downloads page, or run the command : wget http://prdownloads.sourceforge.net/webadmin/webmin-1.870-1.noarch.rpm then install optional dependencies with : yum -y install perl perl-Net-SSLeay openssl perl-IO-Tty perl-Encode-Detect and then run the command : rpm -U webmin-1.870-1.noarch.rpm Related Read More