diff --git a/Dockerfile b/Dockerfile index edfe1a1..fe8f79c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -52,7 +52,8 @@ ENV CONFIG_VOLUME=$config_dir \ WHOOGLE_ALT_IG=$instagram_alt \ WHOOGLE_ALT_RD=$reddit_alt \ WHOOGLE_ALT_MD=$medium_alt \ - WHOOGLE_ALT_TL=$translate_alt + WHOOGLE_ALT_TL=$translate_alt \ + WHOOGLE_ALT_IM=$imgur_alt WORKDIR /whoogle diff --git a/README.md b/README.md index f6c872e..4ce7d53 100644 --- a/README.md +++ b/README.md @@ -203,6 +203,7 @@ Description=Whoogle #Environment=WHOOGLE_ALT_RD=farside.link/libreddit #Environment=WHOOGLE_ALT_MD=farside.link/scribe #Environment=WHOOGLE_ALT_TL=lingva.ml +#Environment=WHOOGLE_ALT_IM=imgin.voidnet.tech # Load values from dotenv only #Environment=WHOOGLE_DOTENV=1 Type=simple @@ -334,6 +335,7 @@ There are a few optional environment variables available for customizing a Whoog | WHOOGLE_ALT_RD | The reddit.com alternative to use when site alternatives are enabled in the config. | | WHOOGLE_ALT_TL | The Google Translate alternative to use. This is used for all "translate ____" searches. | | WHOOGLE_ALT_MD | The medium.com alternative to use when site alternatives are enabled in the config. | +| WHOOGLE_ALT_IM | The imgur.com alternative to use when site alternatives are enabled in the config. | | WHOOGLE_AUTOCOMPLETE | Controls visibility of autocomplete/search suggestions. Default on -- use '0' to disable | | WHOOGLE_MINIMAL | Remove everything except basic result cards from all search queries. | | WHOOGLE_CSP | Sets a default set of 'Content-Security-Policy' headers | diff --git a/app.json b/app.json index c67d7b7..2482a92 100644 --- a/app.json +++ b/app.json @@ -75,6 +75,11 @@ "value": "lingva.ml", "required": false }, + "WHOOGLE_ALT_IM": { + "description": "The site to use as a replacement for imgur.com when site alternatives are enabled in the config.", + "value": "imgin.voidnet.tech", + "required": false + }, "WHOOGLE_MINIMAL": { "description": "Remove everything except basic result cards from all search queries (set to 1 or leave blank)", "value": "", diff --git a/app/utils/results.py b/app/utils/results.py index 5b1e116..38f7acf 100644 --- a/app/utils/results.py +++ b/app/utils/results.py @@ -24,6 +24,7 @@ BLACKLIST = [ ] SITE_ALTS = { + 'imgur.com': os.getenv('WHOOGLE_ALT_IM', 'imgin.voidnet.tech'), 'twitter.com': os.getenv('WHOOGLE_ALT_TW', 'farside.link/nitter'), 'youtube.com': os.getenv('WHOOGLE_ALT_YT', 'farside.link/invidious'), 'instagram.com': os.getenv('WHOOGLE_ALT_IG', 'farside.link/bibliogram/u'), diff --git a/charts/whoogle/values.yaml b/charts/whoogle/values.yaml index 05e45bd..6b98bfd 100644 --- a/charts/whoogle/values.yaml +++ b/charts/whoogle/values.yaml @@ -39,6 +39,7 @@ conf: {} # WHOOGLE_ALT_RD: "" # The reddit.com alternative to use when site alternatives are enabled in the config. # WHOOGLE_ALT_TL: "" # The Google Translate alternative to use. This is used for all "translate ____" searches. # WHOOGLE_ALT_MD: "" # The medium.com alternative to use when site alternatives are enabled in the config. + # WHOOGLE_ALT_IM: "" # The imgur.com alternative to use when site alternatives are enabled in the config. # WHOOGLE_AUTOCOMPLETE: "" # Controls visibility of autocomplete/search suggestions. Default on -- use '0' to disable # WHOOGLE_MINIMAL: "" # Remove everything except basic result cards from all search queries. diff --git a/docker-compose.yml b/docker-compose.yml index 002d9ca..1ea2131 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -38,6 +38,7 @@ services: #- WHOOGLE_ALT_RD=farside.link/libreddit #- WHOOGLE_ALT_MD=farside.link/scribe #- WHOOGLE_ALT_TL=lingva.ml + #- WHOOGLE_ALT_IM=imgin.voidnet.tech #env_file: # Alternatively, load variables from whoogle.env #- whoogle.env ports: diff --git a/whoogle.template.env b/whoogle.template.env index 0fb97ad..5c9a948 100644 --- a/whoogle.template.env +++ b/whoogle.template.env @@ -13,6 +13,7 @@ #WHOOGLE_ALT_RD=farside.link/libreddit #WHOOGLE_ALT_MD=farside.link/scribe #WHOOGLE_ALT_TL=lingva.ml +#WHOOGLE_ALT_IM=imgin.voidnet.tech #WHOOGLE_USER="" #WHOOGLE_PASS="" #WHOOGLE_PROXY_USER=""