Whoogle: How can I use the preferences URL?
from maki@discuss.tchncs.de to selfhosted@lemmy.world on 14 Nov 2024 22:57
https://discuss.tchncs.de/post/25221680

Hello,

I would like to use the URL of Whoogle’s settings so that I can use different settings.

How can I save and use the settings via the URL?

https://tst.us?preferences=uG8MBIJwHdiwDp1QdzDg92Jvu-uXf9XXc4pizSjScK0YUIsWiEyA-_U3hz5hFvMYUeiUWWOdbNNUzMuFyMZNVFye-vhkKn2L_sXt5XNyOvkpjwBhPP2MsakXYPsw227zq00CMwioW33qsIsoNbTFDCw9VkCLrGLHxYCq3D9ZtT53ho0glFtjopDko5ucuPeYJU7QbyQWbNAT0xxeTqiXDLneMMDXCiexiWcjc0B4F4msP7JwS605uJuHFJHCHwcDQCa6VHw==

(tst.us does not exist, it is a sample.

Unfortunately, it has no effect on the settings if I use this URL for the search.

A screenshot from the settings of whoogle

#selfhosted

threaded - newest

Ephera@lemmy.ml on 15 Nov 2024 07:17 next collapse

Hmm, I don’t know anything about Whoogle, but from other privacy-conscious search engines, I would expect it to work when you use that URL in your bookmark.

Three things I can imagine:

  • Something in your hosting stack strips the URL parameters, like maybe your reverse proxy, if you use one. You might be able to see in the Whoogle or web server logs, which URLs actually reach it. Might need to set it to debug/trace logging.
  • Maybe there’s a flag in the Whoogle configuration you need to enable to accept these preference URLs.
  • It’s a bug in that Whoogle version.
WeirdGoesPro@lemmy.dbzer0.com on 15 Nov 2024 13:33 next collapse

It says right above that box that it requires the WHOOGLE_CONFIG_PREFERENCES_KEY or that option will be ignored. My guess is that you have to manually edit some config file to turn that key on, or generate an encryption key yourself that you provide through editing a config and adding it to that line.

Edit: you probably need to add your own domain or IP as the root URL too.

sandwichsaregood@lemmy.world on 16 Nov 2024 05:01 collapse

The message you’re reading applies to the checkbox above for encryption, not the preferences url. The preferences key only needs to be set if you want to encrypt the configuration URL, it doesn’t affect what OP wants to do.

My memory is a bit fuzzy because I switched to Searxng after playing with Whoogle briefly, but I thought Whoogle stored preferences in a cookie or something similar; the preferences URL is for when you want to transfer the preferences for your current machine to another. So OP is misunderstanding what it’s for.

OP: if your preferences aren’t sticking, are you maybe blocking cookies entirely or something? I’m pretty sure you shouldn’t need to do anything with the preferences URL for your preferences to stick if everything is set up correctly, it’s only for transferring your preferences to another machine.

macattack@lemmy.world on 01 Dec 02:25 collapse

One alternative is to us SearXNG for similar functionality. The preference tabs work for them. I am using northboot.xyz and adjusted the colors and default engines but you can pick anything from searx.space