fix missing auth of search, reduce nginx alias to relevant paths only

This commit is contained in:
simon 2022-01-01 22:17:44 +07:00
parent 37140551d2
commit d5b3b90202
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
2 changed files with 11 additions and 3 deletions

View File

@ -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/ {

View File

@ -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"),
] ]