Major: Restructure of Project

Major: Introduction of Frontend (React)
This commit is contained in:
Chris-1010
2025-01-21 17:19:23 +00:00
parent 76991f0b39
commit 2887409ae6
92 changed files with 4924 additions and 18341 deletions

View File

@@ -1,12 +1,43 @@
worker_processes 1;
events {
worker_connections 1024;
}
rtmp {
server {
listen 1935;
chunk_size 4096;
listen 1935; # RTMP listen port
application live {
live on;
record off;
# HLS Configuration (optional)
hls on; # Enable HLS conversion
hls_path /tmp/hls; # Path to store HLS files (use an absolute path)
hls_nested on;
hls_fragment 5s; # Duration of each HLS segment
hls_playlist_length 30s; # Length of HLS playlist (total duration)
}
}
}
http {
# Enable HLS
server {
listen 8080;
location /hls/ {
types {
application/vnd.apple.mpegurl m3u8;
video/mp2t ts;
}
root /tmp;
add_header Cache-Control no-cache;
add_header Access-Control-Allow-Origin *;
autoindex on; # Enable directory indexing
}
}
}