diff --git a/Dockerfile b/Dockerfile index bf038ba..96e5f81 100644 --- a/Dockerfile +++ b/Dockerfile @@ -36,6 +36,13 @@ ENV HTTPS_ONLY=$use_https ARG whoogle_port=5000 ENV EXPOSE_PORT=$whoogle_port +ARG twitter_alt='' +ENV WHOOGLE_ALT_TW=$twitter_alt +ARG youtube_alt='' +ENV WHOOGLE_ALT_YT=$youtube_alt +ARG instagram_alt='' +ENV WHOOGLE_ALT_YT=$instagram_alt + COPY . . EXPOSE $EXPOSE_PORT diff --git a/README.md b/README.md index 217302f..fff3ada 100644 --- a/README.md +++ b/README.md @@ -129,6 +129,12 @@ Description=Whoogle #Environment=WHOOGLE_PROXY_PASS= #Environment=WHOOGLE_PROXY_TYPE= +# Site alternative configurations, uncomment to enable +# Note: If not set, the feature will still be available +# with default values. +#Environment=WHOOGLE_ALT_TW=nitter.net +#Environment=WHOOGLE_ALT_YT=invidious.snopyta.org +#Environment=WHOOGLE_ALT_IG=bibliogram.art/u Type=simple User=root WorkingDirectory= @@ -229,7 +235,10 @@ There are a few optional environment variables available for customizing a Whoog | WHOOGLE_PROXY_TYPE | The type of the proxy server. Can be "socks5", "socks4", or "http". | | WHOOGLE_PROXY_LOC | The location of the proxy server (host or ip). | | EXPOSE_PORT | The port where Whoogle will be exposed. | -| HTTPS_ONLY | Enforce HTTPS. (See [here](https://github.com/benbusby/whoogle-search#https-enforcement)) | +| HTTPS_ONLY | Enforce HTTPS. (See [here](https://github.com/benbusby/whoogle-search#https-enforcement)) | +| WHOOGLE_ALT_TW | The twitter.com alternative to use when site alternatives are enabled in the config. | +| WHOOGLE_ALT_YT | The youtube.com alternative to use when site alternatives are enabled in the config. | +| WHOOGLE_ALT_IG | The instagram.com alternative to use when site alternatives are enabled in the config. | ## Usage Same as most search engines, with the exception of filtering by time range. diff --git a/app.json b/app.json index 7482c98..18846d9 100644 --- a/app.json +++ b/app.json @@ -44,6 +44,21 @@ "description": "The location of the proxy server (host or ip). Leave empty to disable.", "value": "", "required": false + }, + "WHOOGLE_ALT_TW": { + "description": "The site to use as a replacement for twitter.com when site alternatives are enabled in the config." + "value": "", + "required": false + }, + "WHOOGLE_ALT_YT": { + "description": "The site to use as a replacement for youtube.com when site alternatives are enabled in the config." + "value": "", + "required": false + }, + "WHOOGLE_ALT_IG": { + "description": "The site to use as a replacement for instagram.com when site alternatives are enabled in the config." + "value": "", + "required": false } } } diff --git a/docker-compose.yml b/docker-compose.yml index 0d58aac..75ad171 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,6 +13,12 @@ services: #- WHOOGLE_PROXY_PASS= #- WHOOGLE_PROXY_TYPE= + # Site alternative configurations, uncomment to enable + # Note: If not set, the feature will still be available + # with default values. + #- WHOOGLE_ALT_TW=nitter.net + #- WHOOGLE_ALT_YT=invidious.snopyta.org + #- WHOOGLE_ALT_IG=bibliogram.art/u ports: - 5000:5000 restart: unless-stopped