Add imgur.com alternative

This commit is contained in:
Lim Zhi Yang 2022-01-06 23:54:27 +08:00
parent 6f46738db0
commit 70a0aefee3
7 changed files with 13 additions and 1 deletions

View File

@ -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

View File

@ -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 |

View File

@ -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": "",

View File

@ -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'),

View File

@ -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.

View File

@ -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:

View File

@ -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=""