tubearchivist/docker_assets/nginx.conf

33 lines
592 B
Nginx Configuration File
Raw Normal View History

2021-09-05 17:10:14 +00:00
server {
listen 8000;
location /cache/videos/ {
2022-07-18 07:10:34 +00:00
auth_request /api/ping/;
alias /cache/videos/;
}
location /cache/channels/ {
2022-07-18 07:10:34 +00:00
auth_request /api/ping/;
alias /cache/channels/;
}
location /cache/playlists/ {
2022-07-18 07:10:34 +00:00
auth_request /api/ping/;
alias /cache/playlists/;
2021-09-05 17:10:14 +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/;
types {
text/vtt vtt;
}
2021-09-05 17:10:14 +00:00
}
2021-09-05 17:10:14 +00:00
location / {
include uwsgi_params;
uwsgi_pass localhost:8080;
}
2021-09-05 17:10:14 +00:00
}