forked from hnhx/librex
-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: merge pull request #207 from codedipper/iamalive
update alpine, php, instances list; add permissions-policy header
- Loading branch information
Showing
9 changed files
with
77 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
> [!IMPORTANT] | ||
> Please note that this heavily relies on [@codedipper](https://github.com/codedipper)'s [work and is basically a copy of his wiki](https://github.com/codedipper/LibreY-Tor/wiki/LibreY-Tor-Proxy-‐-Manually-built-images-with-compose). | ||
Step 0: Install and configure Docker.\ | ||
Step 1: Enter a root shell on the host machine. | ||
|
||
Step 2: Clone the required git repositories to the host machine. | ||
```sh | ||
git clone https://github.com/Ahwxorg/LibreY.git LibreY/ | ||
git clone https://github.com/codedipper/LibreY-Tor.git LibreY-Tor/ | ||
docker network create --driver=bridge --subnet=172.4.0.0/16 librey_tor_net | ||
``` | ||
|
||
Step 3: Manually edit `LibreY-Tor/torrc` to configure Tor to your liking. | ||
|
||
Step 4: Build LibreY + LibreY-Tor image. | ||
```sh | ||
cd LibreY/ | ||
docker buildx build --rm --no-cache --pull -t librey:latest . | ||
cd ../LibreY-Tor/ | ||
docker buildx build --rm --no-cache --pull -t librey-tor:latest . | ||
``` | ||
|
||
Step 5: Start your desired containers with the options you want. | ||
|
||
```sh | ||
cd ../LibreY/ | ||
docker run -d --name librey --ip=172.4.0.6 --network librey_tor_net -p 8080:8080 -e TZ="America/New_York" -e CONFIG_GOOGLE_DOMAIN="com" -e CONFIG_LANGUAGE="en" -e CONFIG_NUMBER_OF_RESULTS="10" -e CONFIG_INVIDIOUS_INSTANCE="https://inv.nadeko.net" -e CONFIG_DISABLE_BITTORRENT_SEARCH=false -e CONFIG_HIDDEN_SERVICE_SEARCH=false -e CONFIG_INSTANCE_FALLBACK=true -e CONFIG_RATE_LIMIT_COOLDOWN=25 -e CONFIG_CACHE_TIME=20 -e CONFIG_DISABLE_API=false -e CONFIG_TEXT_SEARCH_ENGINE="auto" -e CURLOPT_PROXY_ENABLED=true -e CURLOPT_PROXY="172.4.0.5:9050" -e CURLOPT_PROXYTYPE="CURLPROXY_SOCKS5_HOSTNAME" -e CURLOPT_USERAGENT="Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0" -e CURLOPT_FOLLOWLOCATION=true -v ./nginx_logs:/var/log/nginx -v ./php_logs:/var/log/php84 --restart unless-stopped librey:latest | ||
docker run -d --name librey-librey_tor-1 --network librey_tor_net --ip=172.4.0.5 -v $PWD/../LibreY-Tor/torrc:/etc/tor/torrc librey-tor:latest | ||
|
||
``` | ||
|
||
To update containers: | ||
```sh | ||
cd LibreY/ | ||
docker stop librey librey-librey_tor-1 | ||
docker rm librey librey-librey_tor-1 | ||
docker buildx build --rm --no-cache --pull -t librey:latest . | ||
cd ../LibreY-Tor/ | ||
docker buildx build --rm --no-cache --pull -t librey-tor:latest . | ||
# Repeat run commands | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters