UPDATE: Changed "stream_data" volume to "user_data" volume

This commit is contained in:
2025-03-02 16:15:37 +00:00
parent 3894958441
commit e3e6a3f3dc
3 changed files with 37 additions and 27 deletions

View File

@@ -25,7 +25,7 @@ rtmp {
live on;
hls on;
hls_path /stream_data/;
hls_path /user_data/;
allow publish 127.0.0.1;
deny publish all;
@@ -80,7 +80,7 @@ http {
## The HLS stream location with thumbnails
## Contains TS files, M3U8 files and PNG thumbnails
location ~ ^/stream/(.+)/(.+\.(ts|m3u8|png))$ {
alias /stream_data/stream/$1/$2;
alias /user_data/$1/stream/$2;
# Let the MPEG-TS video chunks be cacheable
expires max;
@@ -89,7 +89,7 @@ http {
## VoDs Location and thumbnails
## Contains MP4 files and PNG thumbnails
location ~ ^/vods/(.+)/(.+\.(mp4|png))$ {
alias /stream_data/vods/$1/$2;
alias /user_data/vods/$1/$2;
# The thumbnails should not be cacheable
expires -1d;
@@ -97,7 +97,7 @@ http {
## Profile pictures location
location ~ ^/user/(.+)/index.png$ {
alias /stream_data/profile_pictures/$1.png;
alias /user_data/profile_pictures/$1.png;
# The profile pictures should not be cacheable
expires -1d;