mirror of
https://github.com/benbusby/whoogle-search
synced 2024-11-10 13:10:30 +00:00
634d179568
* Integrate Farside into Whoogle When instances are ratelimited (when a captcha is returned instead of the user's search results) the user can now hop to a new instance via Farside, a new backend service that redirects users to working instances of a particular frontend. In this case, it presents a user with a Farside link to a new Whoogle (or Searx) instance instead, so that the user can resume their search. For the generated Farside->Whoogle link, the generated link includes the user's current Whoogle configuration settings as URL params, to ensure a more seamless transition between instances. This doesn't translate to the Farside->Searx link, but potentially could with some changes. * Expand conversion of config<->url params Config settings can now be translated to and from URL params using a predetermined set of "safe" keys (i.e. config settings that easily translate to URL params). * Allow jumping instances via Farside when ratelimited When instances are ratelimited (when a captcha is returned instead of the user's search results) the user can now hop to a new instance via Farside, a new backend service that redirects users to working instances of a particular frontend. In this case, it presents a user with a Farside link to a new Whoogle (or Searx) instance instead, so that the user can resume their search. For the generated Farside->Whoogle link, the generated link includes the user's current Whoogle configuration settings as URL params, to ensure a more seamless transition between instances. This doesn't translate to the Farside->Searx link, but potentially could with some changes. Closes #554 Closes #559
45 lines
1.6 KiB
YAML
45 lines
1.6 KiB
YAML
# cant use mem_limit in a 3.x docker-compose file in non swarm mode
|
|
# see https://github.com/docker/compose/issues/4513
|
|
version: "2.4"
|
|
|
|
services:
|
|
whoogle-search:
|
|
image: benbusby/whoogle-search
|
|
container_name: whoogle-search
|
|
restart: unless-stopped
|
|
pids_limit: 50
|
|
mem_limit: 256mb
|
|
memswap_limit: 256mb
|
|
# user debian-tor from tor package
|
|
user: '102'
|
|
security_opt:
|
|
- no-new-privileges
|
|
cap_drop:
|
|
- ALL
|
|
tmpfs:
|
|
- /config/:size=10M,uid=102,gid=102,mode=1700
|
|
- /var/lib/tor/:size=10M,uid=102,gid=102,mode=1700
|
|
- /run/tor/:size=1M,uid=102,gid=102,mode=1700
|
|
#environment: # Uncomment to configure environment variables
|
|
# Basic auth configuration, uncomment to enable
|
|
#- WHOOGLE_USER=<auth username>
|
|
#- WHOOGLE_PASS=<auth password>
|
|
# Proxy configuration, uncomment to enable
|
|
#- WHOOGLE_PROXY_USER=<proxy username>
|
|
#- WHOOGLE_PROXY_PASS=<proxy password>
|
|
#- WHOOGLE_PROXY_TYPE=<proxy type (http|https|socks4|socks5)
|
|
#- WHOOGLE_PROXY_LOC=<proxy host/ip>
|
|
# Site alternative configurations, uncomment to enable
|
|
# Note: If not set, the feature will still be available
|
|
# with default values.
|
|
#- WHOOGLE_ALT_TW=farside.link/nitter
|
|
#- WHOOGLE_ALT_YT=farside.link/invidious
|
|
#- WHOOGLE_ALT_IG=farside.link/bibliogram/u
|
|
#- WHOOGLE_ALT_RD=farside.link/libreddit
|
|
#- WHOOGLE_ALT_MD=farside.link/scribe
|
|
#- WHOOGLE_ALT_TL=lingva.ml
|
|
#env_file: # Alternatively, load variables from whoogle.env
|
|
#- whoogle.env
|
|
ports:
|
|
- 5000:5000
|