########################################################################################## PIDVR-9: HTTP Egress ########################################################################################## Issue Type: New Feature ----------------------------------------------------------------------------------------- Issue Information ==================== Priority: Major Status: Closed Resolution: Done (2014-11-08 14:53:37) Project: PiDVR (PIDVR) Reported By: btasker Assigned To: btasker Labels: Egress, HTTP, Time Estimate: 0 minutes Time Logged: 0 minutes ----------------------------------------------------------------------------------------- Issue Description ================== When streaming, TVHeadEnd uses HTSP (Home Tv Streaming Protocol). Once a programme has been recorded, the file is stored on Disk in Makostra format (MKV) so it'd be helpful if a downstream storage appliance could simply fetch this via HTTP (the automated behaviour of this will be looked at when building the API's). So we need a lightweight HTTP server configured to serve the recordings directory (under a specific hostname). ----------------------------------------------------------------------------------------- Attachments ============ - nginx_recordings.txt ----------------------------------------------------------------------------------------- Issue Relations ================ - is blocked by PIDVR-8: Configure recordings directory ----------------------------------------------------------------------------------------- Activity ========== ----------------------------------------------------------------------------------------- 2014-11-08 14:44:58 btasker ----------------------------------------------------------------------------------------- NGinx seems like the best bet -- BEGIN SNIPPET -- root@testpi:/home/pi# apt-get install nginx root@testpi:/home/pi# cd /etc/nginx/sites-available root@testpi:/etc/nginx/sites-available# cp default recordings # Edited recordings (see attached) root@testpi:/etc/nginx/sites-available# ln -s /etc/nginx/sites-available/recordings /etc/nginx/sites-enabled/ root@testpi:/etc/nginx/sites-available# service nginx start root@testpi:/etc/nginx/sites-available# wget -O - http://127.0.0.1/ --header="Host: recordings.tvheadend" -- END SNIPPET -- ----------------------------------------------------------------------------------------- 2014-11-08 14:44:58 ----------------------------------------------------------------------------------------- btasker added 'nginx_recordings.txt' to Attachments ----------------------------------------------------------------------------------------- 2014-11-08 14:53:24 btasker ----------------------------------------------------------------------------------------- Make sure _nginx_ is available at boot -- BEGIN SNIPPET -- root@testpi:/etc/nginx/sites-available# update-rc.d nginx defaults -- END SNIPPET -- ----------------------------------------------------------------------------------------- 2014-11-08 14:53:37 ----------------------------------------------------------------------------------------- btasker changed status from 'Open' to 'Resolved' ----------------------------------------------------------------------------------------- 2014-11-08 14:53:37 ----------------------------------------------------------------------------------------- btasker added 'Done' to resolution ----------------------------------------------------------------------------------------- 2014-11-08 14:53:40 ----------------------------------------------------------------------------------------- btasker changed status from 'Resolved' to 'Closed'