mirror of
https://github.com/tubearchivist/tubearchivist
synced 2024-11-19 15:25:51 +00:00
fix missing auth of search, reduce nginx alias to relevant paths only
This commit is contained in:
parent
37140551d2
commit
d5b3b90202
12
nginx.conf
12
nginx.conf
@ -2,8 +2,16 @@ server {
|
|||||||
|
|
||||||
listen 8000;
|
listen 8000;
|
||||||
|
|
||||||
location /cache/ {
|
location /cache/videos/ {
|
||||||
alias /cache/;
|
alias /cache/videos/;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /cache/channels/ {
|
||||||
|
alias /cache/channels/;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /cache/playlists/ {
|
||||||
|
alias /cache/playlists/;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /media/ {
|
location /media/ {
|
||||||
|
@ -53,5 +53,5 @@ urlpatterns = [
|
|||||||
login_required(PlaylistIdView.as_view()),
|
login_required(PlaylistIdView.as_view()),
|
||||||
name="playlist_id",
|
name="playlist_id",
|
||||||
),
|
),
|
||||||
path("search/", SearchView.as_view(), name="search"),
|
path("search/", login_required(SearchView.as_view()), name="search"),
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user