2024-08-23, 03:50 PM
(This post was last modified: 2024-08-23, 04:00 PM by vodka. Edited 3 times in total.)
(2024-08-22, 09:36 PM)domi Wrote: Try adding the following location block above your regular Jellyfin location block:
Quote:location ~* ^(?!/Genres)(.*) {
if ($arg_searchTerm) {
proxy_pass http://jellysearch:5000;
break;
}
}
I tried this (with the correct proxy pass url ofc) and it seems to now redirect everything that goes to my jf domain straight to a default nginx page. Commenting it out restores service as normal.
Though what I did instead was change my default location block to include the if part from here, since I don't care about the Genres queries going though (according to the dev they get passed through anyway)
I changed it from this:
Code:
location / {
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
proxy_pass http://10.0.69.69:8096;
proxy_set_header Range $http_range;
proxy_set_header If-Range $http_if_range;
}
Code:
location / {
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
if ($arg_searchTerm) {
proxy_pass http://10.0.69.69:5000;
break;
}
proxy_pass http://10.0.69.69:8096;
proxy_set_header Range $http_range;
proxy_set_header If-Range $http_if_range;
}