Private Video Server
A very simple private video server.
⚠️ This project is open source but made for self usage if you like this project feel free to star and fork this repository.
⚠️ Any problem with this project or security issues is your responsibility to handle them.
⚠️ No issues or pull requests will be accepted.
Table of Contents
Overview
The idea of this project is to make a collection of simple videos and to watch them easily (currently only mp4
files are supported).
The main usage of this project to make it as a server and to access it outside.
The main security is that always is there one admin user that can access to the server resources which configured in the .env
file.
Tech
- Nx Workspace
- TypeScript
- Angular
- NodeJS
- NestJS
- SQLite
- FFMPEG
Prerequisites
- Linux OS (not tested on Windows yet)
- Node.js (>= 16 required)
- npm package manager (>= 8 required)
- ffmpeg
Configure Environment File
Before developing or running any commands you should configure environment file to make everything work as expected.
- Copy
.env.example
content and create new file.env
and paste the content there. - Update the values after
=
for your right needs - Please notice
API_MEDIA_DIRECTORY
should be with absolute path
Commands
Run locally api and web applications.
- api:
localhost:8080
- web:
localhost:4200
npm run start:local
Build with production configuration for api and web applications.
npm run build:prod-server
Serve production build.
Will run on localhost:8080
npm run serve:prod-server
Stop serving production build.
npm run stop:prod-server
Build and serve production build in the same command.
npm run build-and-serve:prod-server
Clean resources (deletes cache files, media files, and database).
npm run clean-resources