whoogle-search icon indicating copy to clipboard operation
whoogle-search copied to clipboard

[FEATURE] Save Configuration

Open thunderclap82 opened this issue 2 years ago • 8 comments

It would be nice if all Whoogle's configurations were saved. Right now only Dark Theme, Root URL and Custom CSS saves, however I would like other things like Country, Near City Name, and Replace Social Media Links disabled. Thanks.

thunderclap82 avatar Sep 01 '22 21:09 thunderclap82

I've been trying to figure this out as well. The documentation mentions the whoogle.env file to add permanent settings, but I can't for the life of me figure out how to access it to edit it.

liberninja avatar Sep 11 '22 14:09 liberninja

I'm using Whoogle in docker and in the doc, I see you can add a variable of WHOOGLE_CONFIG_ALTS (I assume 0=no, 1=yes) but that doesn't seem to work as safe search constantly re-ticks.

thunderclap82 avatar Sep 11 '22 15:09 thunderclap82

I still haven't figured out how to properly setup the WHOOGLE_DOTENV=1 variable. No matter what I do no custom settings are loaded...

liberninja avatar Sep 11 '22 15:09 liberninja

To use the whoogle.env file, you need to copy the whoogle.template.env file and rename it whoogle.env, then you should uncomment and modify the config according to your preferences. Now you should launch whoogle with WHOOGLE_DOTENV=1, and it should work.

jacr13 avatar Sep 19 '22 12:09 jacr13

I'm using Whoogle in docker and in the doc, I see you can add a variable of WHOOGLE_CONFIG_ALTS (I assume 0=no, 1=yes) but that doesn't seem to work as safe search constantly re-ticks.

try to update to the most recent version and adding WHOOGLE_CONFIG_SAFE=0 to stop using safe search.

jacr13 avatar Sep 19 '22 12:09 jacr13

Yes, I've now managed to find it and rename it to whoogle.env, configured it the way I want, and launched it with WHOOGLE_DOTENV=1 Still not applying the changes though.

liberninja avatar Sep 19 '22 13:09 liberninja

Which version are you using? Which deployment (with which command)? Do you mind sharing your whoogle.env?

jacr13 avatar Sep 20 '22 13:09 jacr13

I'm using Whoogle in docker and in the doc, I see you can add a variable of WHOOGLE_CONFIG_ALTS (I assume 0=no, 1=yes) but that doesn't seem to work as safe search constantly re-ticks.

try to update to the most recent version and adding WHOOGLE_CONFIG_SAFE=0 to stop using safe search.

Safe is actually staying unchecked. The one I really want to disable is Replace Social Media Links. I want that off which looks like the variable is WHOOGLE_CONFIG_ALTS, however it's not staying unchecked. Every few days it returns.

thunderclap82 avatar Sep 20 '22 17:09 thunderclap82

Whoogle has now the possibility to encode preferences in URL, it is maybe a solution for your problem

jacr13 avatar Sep 23 '22 10:09 jacr13

Which version are you using? Which deployment (with which command)? Do you mind sharing your whoogle.env?

I was using the 'Manual' setup before, but now I'm running it on docker. I renamed whoogle.template.env to whoogle.env, stuck in in my home folder, then ran this command:

`sudo docker run --publish 5001:5000 --detach --name whoogle-search --env-file ./whoogle.env benbusby/whoogle-search:latest'

Whoogle works fine but it's still not loading my custom config. My whoogle.env file has these lines:

# Enable View Image option
WHOOGLE_CONFIG_VIEW_IMAGE=1

# Set the number of results per page
WHOOGLE_RESULTS_PER_PAGE=20

I also tried running it like this with the same lack of custom config:

sudo docker run --restart=always --publish 5001:5000 --detach --name whoogle-search \
> -e WHOOGLE_CONFIG_VIEW_IMAGE=1 \
> -e WHOOGLE_RESULTS_PER_PAGE=20 \
> benbusby/whoogle-search:latest

liberninja avatar Oct 19 '22 17:10 liberninja

The last command you sent should work perfectly! docker run --restart=always --publish 5001:5000 --detach --name whoogle-search -e WHOOGLE_CONFIG_VIEW_IMAGE=1 -e WHOOGLE_RESULTS_PER_PAGE=20 benbusby/whoogle-search:latest

jacr13 avatar Oct 20 '22 10:10 jacr13

Oh well I'll be darned, it works now that I reinstall it! Must have put something in wrong before. I appreciate the help 👍

liberninja avatar Oct 20 '22 21:10 liberninja