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

pull/129/head
simon 3 years ago
parent 37140551d2
commit d5b3b90202
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4

@ -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…
Cancel
Save