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/ {
|
2022-07-18 07:10:34 +00:00
|
|
|
auth_request /api/ping/;
|
2022-01-01 15:17:44 +00:00
|
|
|
alias /cache/videos/;
|
|
|
|
}
|
2022-04-01 04:43:24 +00:00
|
|
|
|
2022-01-01 15:17:44 +00:00
|
|
|
location /cache/channels/ {
|
2022-07-18 07:10:34 +00:00
|
|
|
auth_request /api/ping/;
|
2022-01-01 15:17:44 +00:00
|
|
|
alias /cache/channels/;
|
|
|
|
}
|
2022-04-01 04:43:24 +00:00
|
|
|
|
2022-01-01 15:17:44 +00:00
|
|
|
location /cache/playlists/ {
|
2022-07-18 07:10:34 +00:00
|
|
|
auth_request /api/ping/;
|
2022-01-01 15:17:44 +00:00
|
|
|
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/ {
|
2022-07-18 07:10:34 +00:00
|
|
|
auth_request /api/ping/;
|
2021-09-05 17:10:14 +00:00
|
|
|
alias /youtube/;
|
2022-02-12 12:08:19 +00:00
|
|
|
types {
|
|
|
|
text/vtt vtt;
|
|
|
|
}
|
2021-09-05 17:10:14 +00:00
|
|
|
}
|
2024-08-10 17:53:50 +00:00
|
|
|
|
|
|
|
location /youtube/ {
|
|
|
|
auth_request /api/ping/;
|
|
|
|
alias /youtube/;
|
|
|
|
types {
|
|
|
|
video/mp4 mp4;
|
|
|
|
}
|
|
|
|
}
|
2022-04-01 04:43:24 +00:00
|
|
|
|
2024-08-10 17:53:50 +00:00
|
|
|
location /api {
|
2024-12-23 14:53:27 +00:00
|
|
|
include proxy_params;
|
|
|
|
proxy_pass http://localhost:8080;
|
2021-09-05 17:10:14 +00:00
|
|
|
}
|
2024-08-10 17:53:50 +00:00
|
|
|
|
2024-12-21 02:58:41 +00:00
|
|
|
location /admin {
|
2024-12-23 14:53:27 +00:00
|
|
|
include proxy_params;
|
|
|
|
proxy_pass http://localhost:8080;
|
2024-12-21 02:58:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
location /static/ {
|
|
|
|
alias /app/staticfiles/;
|
|
|
|
}
|
|
|
|
|
2024-08-10 17:53:50 +00:00
|
|
|
root /app/static;
|
|
|
|
index index.html;
|
|
|
|
|
|
|
|
location / {
|
|
|
|
try_files $uri $uri/ /index.html =404;
|
|
|
|
}
|
2025-01-06 14:08:51 +00:00
|
|
|
}
|