From 8ed1578b4d02fe504baa6f1784fb32b73b898439 Mon Sep 17 00:00:00 2001 From: Ben Busby Date: Wed, 5 May 2021 13:45:11 -0400 Subject: [PATCH] Document WHOOGLE_CONFIG_BLOCK usage --- README.md | 1 + app.json | 5 +++++ whoogle.env | 14 ++++++++++++++ 3 files changed, 20 insertions(+) diff --git a/README.md b/README.md index 34b5b1d..99edce4 100644 --- a/README.md +++ b/README.md @@ -267,6 +267,7 @@ These environment variables allow setting default config values, but can be over | WHOOGLE_CONFIG_COUNTRY | Filter results by hosting country | | WHOOGLE_CONFIG_LANGUAGE | Set interface language | | WHOOGLE_CONFIG_SEARCH_LANGUAGE | Set search result language | +| WHOOGLE_CONFIG_BLOCK | Block websites from search results (use comma-separated list) | | WHOOGLE_CONFIG_DARK | Enable dark theme | | WHOOGLE_CONFIG_SAFE | Enable safe searches | | WHOOGLE_CONFIG_ALTS | Use social media site alternatives (nitter, invidious, etc) | diff --git a/app.json b/app.json index 6889e5b..691f8fc 100644 --- a/app.json +++ b/app.json @@ -85,6 +85,11 @@ "value": "", "required": false }, + "WHOOGLE_CONFIG_BLOCK": { + "description": "[CONFIG] Block websites from search results (comma-separated list)", + "value": "", + "required": false + }, "WHOOGLE_CONFIG_DARK": { "description": "[CONFIG] Enable dark mode (set to 1 or leave blank)", "value": "", diff --git a/whoogle.env b/whoogle.env index 0ee372f..3a0f88b 100644 --- a/whoogle.env +++ b/whoogle.env @@ -18,25 +18,39 @@ # See app/static/settings/countries.json for values #WHOOGLE_CONFIG_COUNTRY=countryUK + # See app/static/settings/languages.json for values #WHOOGLE_CONFIG_LANGUAGE=lang_en + # See app/static/settings/languages.json for values #WHOOGLE_CONFIG_SEARCH_LANGUAGE=lang_en + # Disable changing of config from client #WHOOGLE_CONFIG_DISABLE=1 + +# Block websites from search results (comma-separated list) +#WHOOGLE_CONFIG_BLOCK=pinterest.com,whitehouse.gov + # Dark mode #WHOOGLE_CONFIG_DARK=1 + # Safe search mode #WHOOGLE_CONFIG_SAFE=1 + # Use social media site alternatives (nitter, bibliogram, etc) #WHOOGLE_CONFIG_ALTS=1 + # Use Tor if available #WHOOGLE_CONFIG_TOR=1 + # Open results in new tab #WHOOGLE_CONFIG_NEW_TAB=1 + # Search using GET requests only (exposes query in logs) #WHOOGLE_CONFIG_GET_ONLY=1 + # Set instance URL #WHOOGLE_CONFIG_URL=https:/// + # Set custom CSS styling/theming #WHOOGLE_CONFIG_STYLE=":root { /* LIGHT THEME COLORS */ --whoogle-background: #d8dee9; --whoogle-accent: #2e3440; --whoogle-text: #3B4252; --whoogle-contrast-text: #eceff4; --whoogle-secondary-text: #70757a; --whoogle-result-bg: #fff; --whoogle-result-title: #4c566a; --whoogle-result-url: #81a1c1; --whoogle-result-visited: #a3be8c; /* DARK THEME COLORS */ --whoogle-dark-background: #222; --whoogle-dark-accent: #685e79; --whoogle-dark-text: #fff; --whoogle-dark-contrast-text: #000; --whoogle-dark-secondary-text: #bbb; --whoogle-dark-result-bg: #000; --whoogle-dark-result-title: #1967d2; --whoogle-dark-result-url: #4b11a8; --whoogle-dark-result-visited: #bbbbff; }"