FEAT: Implemented auto-updating thumbnails (includes the addition of Redis and Celery)
This commit is contained in:
@@ -24,7 +24,7 @@ rtmp {
|
||||
live on;
|
||||
|
||||
hls on;
|
||||
hls_path /tmp/hls;
|
||||
hls_path /stream_data/hls;
|
||||
|
||||
allow publish 127.0.0.1;
|
||||
deny publish all;
|
||||
@@ -69,7 +69,7 @@ http {
|
||||
|
||||
# The MPEG-TS video chunks are stored in /tmp/hls
|
||||
location ~ ^/stream/user/(.+\.ts)$ {
|
||||
alias /tmp/hls/$1;
|
||||
alias /stream_data/hls/$1;
|
||||
|
||||
# Let the MPEG-TS video chunks be cacheable
|
||||
expires max;
|
||||
@@ -77,12 +77,20 @@ http {
|
||||
|
||||
# The M3U8 playlists location
|
||||
location ~ ^/stream/user/(.+\.m3u8)$ {
|
||||
alias /tmp/hls/$1;
|
||||
alias /stream_data/hls/$1;
|
||||
|
||||
# The M3U8 playlists should not be cacheable
|
||||
expires -1d;
|
||||
}
|
||||
|
||||
# The thumbnails location
|
||||
location ~ ^/stream/user/thumbnails/(.+\.jpg)$ {
|
||||
alias /stream_data/thumbnails/$1;
|
||||
|
||||
# The thumbnails should not be cacheable
|
||||
expires -1d;
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_pass http://frontend:5173; # frontend is the name of the React container in docker-compose
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user