mirror of
https://github.com/benbusby/whoogle-search.git
synced 2026-04-25 12:15:50 +03:00
[GH-ISSUE #728] A few questions about deploying #464
Labels
No labels
Fixed (Pending PR Merge)
Stale
bug
enhancement
enhancement
good first issue
help wanted
keep-open
needs more info
pull-request
question
theme
unfortunate
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/whoogle-search#464
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @JaneJeon on GitHub (Apr 19, 2022).
Original GitHub issue: https://github.com/benbusby/whoogle-search/issues/728
First off, I just deployed it and it was easy as cake. Thanks! I do have some questions (that could hopefully be used to improve the documentation):
WHOOGLE_CONFIG_URLactually do? Why would Whoogle need to know about where the site is hosted?WHOOGLE_CONFIG_GET_ONLYis even a thing - what searches are even done as a non-GET?WHOOGLE_CONFIG_COUNTRYdoes; it doesn't seem to filter by country, per se; is it simply changing the google endpoint that whoogle is making requests against?WHOOGLE_RESULTS_PER_PAGE, is there a set preset of numbers that are allowed by the underlying google search engine, such as 10/25/50?WHOOGLE_ALT_*, how do we go about enabling/disabling each of those? For example, if I want to continue to use the youtube.com frontend while using nitter, what would the values ofWHOOGLE_ALT_TWandWHOOGLE_ALT_YTlook like? What are the available values for these environment variables?@benbusby commented on GitHub (Apr 20, 2022):
WHOOGLE_CONFIG_URLis primarily used to coerce the opensearch template into using the correct URL when hosted behind a reverse proxy like nginx (otherwise the "domain" Flask would use in the template would be "localhost:5000").There are a couple reasons:
From a quick check, it looks like the maximum results per page for image results is 20, but regular searches can go quite a bit higher (I just now checked setting it to 100, which worked fine).
You would enable alts by setting
WHOOGLE_CONFIG_ALTS=1and then for any service that you don't want included, you would set that alt to a blank value (i.e.WHOOGLE_ALT_YT="").Typically the values that you set for these environment variables should map 1:1 with the counterpart they're replacing, which is the domain without a defined scheme (i.e.WHOOGLE_ALT_TWreplaces "twitter.com" with whatever value is defined for that value, orfarside.link/nitterif unspecified and alts are enabled).Hope that all makes sense. Let me know if you want me to clarify/elaborate on anything!
@JaneJeon commented on GitHub (Apr 20, 2022):
So why does Flask even need to coerce the search result using the correct URL?
And as for the POST stuff, I was asking what searches are even being done that requires POST, because I thought it was all supposed to be a GET request; the presence of the “force searches to be done in GET” means there are searches being done in POST, no? So I’m wondering what those are, because I’ve literally never heard of anyone doing searches with a POST
And thanks for the alts instruction