PIDVR-9: HTTP Egress

Issue Information

Issue Type: New Feature
Priority: Major
Status: Closed

Reported By:
Ben Tasker
Assigned To:
Ben Tasker
Project: PiDVR (PIDVR)
Resolution: Done (2014-11-08 14:53:37)
Labels: Egress, HTTP,

Created: 2014-11-08 14:29:41
Time Spent Working

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).



Issue Links

Toggle State Changes


NGinx seems like the best bet

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 - --header="Host: recordings.tvheadend"
btasker added 'nginx_recordings.txt' to Attachments
Make sure nginx is available at boot

root@testpi:/etc/nginx/sites-available# update-rc.d nginx defaults

btasker changed status from 'Open' to 'Resolved'
btasker added 'Done' to resolution
btasker changed status from 'Resolved' to 'Closed'