[GH-ISSUE #31] Configurable config.json location #22

Closed
opened 2026-02-25 20:34:42 +03:00 by kerem · 8 comments
Owner

Originally created by @FoxxMD on GitHub (May 12, 2020).
Original GitHub issue: https://github.com/benbusby/whoogle-search/issues/31

Describe the feature you'd like to see added
static/config.json is used to set the main configuration settings for whoogle. However when the docker container is rebuilt these settings are lost.

Please modify the location of config.json so that it is easier for docker users to provide a volume-mounted copy to the container so we can persist our settings between rebuilds.

Describe which parts of the project this would modify (front end/back end/configuration/etc)

Minimal changes to achieve this

Move config.json into its own folder outside of static, preferably to a location that does not need other files to be written to it. Additionally make sure whoogle does not overwrite this directory/file if it already exists at setup.

With a hardcoded, but separate, directory a docker user can easily volume-mount a folder to that location and provide their own config.json.

Optionally

Expose the configuration directory string as an environmental variable in the Dockerfile so users can set their own directory.

Originally created by @FoxxMD on GitHub (May 12, 2020). Original GitHub issue: https://github.com/benbusby/whoogle-search/issues/31 **Describe the feature you'd like to see added** `static/config.json` is used to set the main configuration settings for whoogle. However when the docker container is rebuilt these settings are lost. Please modify the location of `config.json` so that it is easier for docker users to provide a volume-mounted copy to the container so we can persist our settings between rebuilds. **Describe which parts of the project this would modify (front end/back end/configuration/etc)** ### Minimal changes to achieve this Move `config.json` into its own folder **outside** of static, preferably to a location that does not need other files to be written to it. Additionally make sure whoogle does not overwrite this directory/file if it already exists at setup. With a hardcoded, but separate, directory a docker user can easily volume-mount a folder to that location and provide their own `config.json`. ### Optionally Expose the configuration directory string as an environmental variable in the Dockerfile so users can set their own directory.
kerem 2026-02-25 20:34:42 +03:00
Author
Owner

@benbusby commented on GitHub (May 13, 2020):

Mind trying out the feature/config-volume branch in #39 and see if I'm missing anything missing? I believe that update will satisfy this request. Seemed to be working pretty well for me, if it looks good to you then I'll merge.

<!-- gh-comment-id:627765065 --> @benbusby commented on GitHub (May 13, 2020): Mind trying out the feature/config-volume branch in #39 and see if I'm missing anything missing? I believe that update will satisfy this request. Seemed to be working pretty well for me, if it looks good to you then I'll merge.
Author
Owner

@FoxxMD commented on GitHub (May 13, 2020):

Looks good to me too! Could you possibly publish the branch as a tag on dockerhub? That's how I'm running it (in unraid) right now and would make it like 10 seconds to test it for me 😅

<!-- gh-comment-id:627959984 --> @FoxxMD commented on GitHub (May 13, 2020): Looks good to me too! Could you possibly publish the branch as a tag on dockerhub? That's how I'm running it (in unraid) right now and would make it like 10 seconds to test it for me 😅
Author
Owner

@benbusby commented on GitHub (May 13, 2020):

Available under the config-volume tag on dockerhub now. Let me know if it works for you!

<!-- gh-comment-id:628199185 --> @benbusby commented on GitHub (May 13, 2020): Available under the `config-volume` tag on dockerhub now. Let me know if it works for you!
Author
Owner

@s3rverro0m commented on GitHub (May 13, 2020):

I just pulled this container and the config saves to the directory that I specified.

Only issue I see with this is if you save the config outside, and your friend uses it...they get your settings. Haha.

<!-- gh-comment-id:628214621 --> @s3rverro0m commented on GitHub (May 13, 2020): I just pulled this container and the config saves to the directory that I specified. Only issue I see with this is if you save the config outside, and your friend uses it...they get your settings. Haha.
Author
Owner

@FoxxMD commented on GitHub (May 13, 2020):

@benbusby it works! thank you!!

@r0arkin that would be the case regardless of this change though.

<!-- gh-comment-id:628280557 --> @FoxxMD commented on GitHub (May 13, 2020): @benbusby it works! thank you!! @r0arkin that would be the case regardless of this change though.
Author
Owner

@s3rverro0m commented on GitHub (May 13, 2020):

@benbusby it works! thank you!!

@r0arkin that would be the case regardless of this change though.

That is very true! I just thought about it.

<!-- gh-comment-id:628283579 --> @s3rverro0m commented on GitHub (May 13, 2020): > @benbusby it works! thank you!! > > > > @r0arkin that would be the case regardless of this change though. That is very true! I just thought about it.
Author
Owner

@ghost commented on GitHub (May 14, 2020):

Any plans to push this to :latest on Docker Hub or will this be the branch to permanently follow for this change?

<!-- gh-comment-id:628335723 --> @ghost commented on GitHub (May 14, 2020): Any plans to push this to `:latest` on Docker Hub or will this be the branch to permanently follow for this change?
Author
Owner

@FoxxMD commented on GitHub (May 14, 2020):

p.s. ben you can setup automated builds based on branch in dockerhub
image

<!-- gh-comment-id:628708911 --> @FoxxMD commented on GitHub (May 14, 2020): p.s. ben you can setup automated builds based on branch in dockerhub ![image](https://user-images.githubusercontent.com/4663766/81953433-a6f70280-95d5-11ea-8c51-ed5a6cd7746c.png)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/whoogle-search#22
No description provided.