mirror of
https://github.com/tubearchivist/tubearchivist-frontend.git
synced 2024-12-22 18:00:17 +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;
|
||||
|
||||
location /cache/ {
|
||||
alias /cache/;
|
||||
location /cache/videos/ {
|
||||
alias /cache/videos/;
|
||||
}
|
||||
|
||||
location /cache/channels/ {
|
||||
alias /cache/channels/;
|
||||
}
|
||||
|
||||
location /cache/playlists/ {
|
||||
alias /cache/playlists/;
|
||||
}
|
||||
|
||||
location /media/ {
|
||||
|
@ -53,5 +53,5 @@ urlpatterns = [
|
||||
login_required(PlaylistIdView.as_view()),
|
||||
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