add initial support for tor

This commit is contained in:
brooke 2025-03-07 23:15:18 -05:00
parent 2382e9fef5
commit 1ac909a748
4 changed files with 54 additions and 1 deletions

View File

@ -13,6 +13,9 @@ FOURGET_SHORT_DESCRIPTION="4get 4get 4get 4get"
## Enable captcha protection, please see readme.
#COMPOSE_FILE="$COMPOSE_FILE:compose.captcha.yml"
## Enable onion routing, this will make all searches using tor
#COMPOSE_FILE="$COMPOSE_FILE:compose.tor.yml"
INCLUDE_NEWS_LINK=false
INCLUDE_4GET_DONATION_LINK=true
INCLUDE_SOURCE_LINK=false

49
compose.tor.yml Normal file
View File

@ -0,0 +1,49 @@
---
version: "3.11"
services:
app:
environment:
- FOURGET_PROXY_DDG="onion"
- FOURGET_PROXY_BRAVE="onion"
- FOURGET_PROXY_FB="onion"
- FOURGET_PROXY_GOOGLE="onion"
- FOURGET_PROXY_QWANT="onion"
- FOURGET_PROXY_MARGINALIA="onion"
- FOURGET_PROXY_MOJEEK="onion"
- FOURGET_PROXY_SC="onion"
- FOURGET_PROXY_SPOTIFY="onion"
- FOURGET_PROXY_WIBY="onion"
- FOURGET_PROXY_CURLIE="onion"
- FOURGET_PROXY_YT="onion"
- FOURGET_PROXY_YEP="onion"
- FOURGET_PROXY_PINTEREST="onion"
- FOURGET_PROXY_SEZNAM="onion"
- FOURGET_PROXY_NAVER="onion"
- FOURGET_PROXY_GREPPR="onion"
- FOURGET_PROXY_CROWDVIEW="onion"
- FOURGET_PROXY_MWMBL="onion"
- FOURGET_PROXY_FTM="onion"
- FOURGET_PROXY_IMGUR="onion"
- FOURGET_PROXY_YANDEX_W="onion"
- FOURGET_PROXY_YANDEX_I="onion"
- FOURGET_PROXY_YANDEX_V="onion"
networks:
- internal
volumes:
- banners:/var/www/html/4get/banner/
configs:
- source: onion_txt
target: /var/www/html/4get/data/proxies/onion.txt
tor:
image: luuul/tor:latest
configs:
onion_txt:
name: ${STACK_NAME}_onion_txt_${ROBOTS_TXT_VERSION}
file: onion.txt.tmpl
template_driver: golang
networks:
internal:

View File

@ -40,7 +40,7 @@ services:
configs:
robots_txt:
name: ${STACK_NAME}_entrypoint_conf_${ROBOTS_TXT_VERSION}
name: ${STACK_NAME}_robots_txt${ROBOTS_TXT_VERSION}
file: robots.txt.tmpl
template_driver: golang
about_html:

1
onion.txt.tmpl Normal file
View File

@ -0,0 +1 @@
socks5:tor:9050::