2021-09-05 17:10:14 +00:00
|
|
|
server {
|
|
|
|
|
|
|
|
listen 8000;
|
2022-04-01 04:43:24 +00:00
|
|
|
|
2022-01-01 15:17:44 +00:00
|
|
|
location /cache/videos/ {
|
|
|
|
alias /cache/videos/;
|
|
|
|
}
|
2022-04-01 04:43:24 +00:00
|
|
|
|
2022-01-01 15:17:44 +00:00
|
|
|
location /cache/channels/ {
|
|
|
|
alias /cache/channels/;
|
|
|
|
}
|
2022-04-01 04:43:24 +00:00
|
|
|
|
2022-01-01 15:17:44 +00:00
|
|
|
location /cache/playlists/ {
|
|
|
|
alias /cache/playlists/;
|
2021-09-05 17:10:14 +00:00
|
|
|
}
|
2022-04-01 04:43:24 +00:00
|
|
|
|
2021-09-05 17:10:14 +00:00
|
|
|
location /media/ {
|
|
|
|
alias /youtube/;
|
2022-02-12 12:08:19 +00:00
|
|
|
types {
|
|
|
|
text/vtt vtt;
|
|
|
|
}
|
2021-09-05 17:10:14 +00:00
|
|
|
}
|
2022-04-01 04:43:24 +00:00
|
|
|
|
2021-09-05 17:10:14 +00:00
|
|
|
location / {
|
|
|
|
include uwsgi_params;
|
|
|
|
uwsgi_pass localhost:8080;
|
|
|
|
}
|
2022-04-01 04:43:24 +00:00
|
|
|
|
2021-09-05 17:10:14 +00:00
|
|
|
}
|