Update FPV-orange-pi-5-groundstation.md

added a basic media server to access stored DVR
pull/324/head
JohnDGodwin 2024-02-13 01:26:50 -05:00 committed by GitHub
parent fdf58eb972
commit c71b4c8cf6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 44 additions and 0 deletions

View File

@ -261,4 +261,48 @@ add:
-------------------------------------------------------------------------------------------
Pulling the DVR over IP -- a basic media server using nginx
sudo apt install nginx-light
give permissions up the file tree to our video directory
sudo chmod o+x /home /home/ubuntu /home/ubuntu/Videos
backup the default loading page and replace it with our own
sudo mv /etc/nginx/sites-available/default /etc/nginx/sites-available/default.old
sudo nano /etc/nginx/sites-available/default
Add the following, but replace x.x.x.x with your system's network IP address:
server {
listen 8080;
listen [::]:8080;
server_name x.x.x.x;
root /home/ubuntu/Videos;
autoindex on;
}
restart nginx to initate the changes
sudo systemctl restart nginx
Your DVR is now available for download at x.x.x.x:8080 in a browser