2024-10-06, 03:03 PM
(This post was last modified: 2024-10-06, 03:08 PM by jennystreaming.)
(2024-08-27, 07:25 PM)Topomov Wrote: It works so beautiful well! Thank you for everything!!
As for Synology users; I wrote the following script that should be put in the task scheduler (have it run at boot as root)
Code:# Define the search term for grep and the words for modification
search_word_1="jellyfin.MYHOSTNAME.com"
search_word_2="location \/ {"
insert_text="\n if (\$arg_searchTerm) { \n proxy_pass http:\/\/localhost:MYJELLYSEARCHPORT;\n break;\n }\n"
# Search for the first file containing the string in grep_term in the specified directory
file=$(grep -Rnw '/usr/local/etc/nginx/sites-available/' -e "$search_word_1" | awk -F: 'NR==1{print $1}')
# Check if a file was found
if [ -z "$file" ]; then
echo "No file containing '$grep_term' found."
exit 1
fi
# Verify that both search_word_1 and search_word_2 exist in the file
if grep -q "$search_word_1" "$file" && grep -q "$search_word_2" "$file"; then
# Use sed with variables to find the first occurrence of search_word_2 after search_word_1 and insert insert_text after search_word_2
sed -i "/$search_word_1/,/$search_word_2/{s/\($search_word_2\)/\1 $insert_text/;}" "$file"
echo "Modification applied to $file"
nginx -s reload
else
echo "The file $file does not contain both '$search_word_1' and '$search_word_2'"
fi
https://gitlab.com/DomiStyle/jellysearch...ellysearch
How did the Docker Compose look for you running Nginx Proxy Manager? I see there are a lot of Traefik parameters in there. Do you have a template to share? Thank you very much.
(2024-10-06, 09:01 AM)domi Wrote:(2024-10-05, 09:32 PM)Hectik Wrote:(2024-10-03, 12:54 PM)dontcryforme Wrote: Change JELLYFIN_CONFIG_DIR to point to '/config/data' instead of '/config'
Hmm, tried that and got the same outcome.
I believe you are one folder too deep, the final path inside of the container for the database file should be /config/data/library.db.
If you remove the JELLYFIN_CONFIG_DIR environment variable and mount ./jellyfin-folder directly to /config it should work.
./jellyfin-folder should contain a data folder.
Sorry for the kind-of-double post, but I saw someone asking pretty much the same thing as me here: https://gitlab.com/DomiStyle/jellysearch/-/issues/9 - we know what to put in Nginx Proxy Manager, but what do we put and/or remove in the Docker Compose since it includes a lot of variables that mention Traefik? Thanks for creating JellySearch, it works great on my friends' servers, just me who is a little bit slow perhaps, haha