mirror of
https://github.com/casjaysdevdocker/tor
synced 2025-10-30 14:02:32 -04:00
🔧 Update configuration files 🔧
Dockerfile .env.scripts rootfs/tmp/etc/privoxy/config rootfs/tmp/etc/unbound/unbound.conf rootfs/usr/local/etc/docker/init.d/01-tor-bridge.sh
This commit is contained in:
@@ -56,5 +56,5 @@ DEFAULT_DATA_DIR="/usr/local/share/template-files/data"
|
|||||||
DEFAULT_CONF_DIR="/usr/local/share/template-files/config"
|
DEFAULT_CONF_DIR="/usr/local/share/template-files/config"
|
||||||
DEFAULT_TEMPLATE_DIR="/usr/local/share/template-files/defaults"
|
DEFAULT_TEMPLATE_DIR="/usr/local/share/template-files/defaults"
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
ENV_PACKAGES="tor torsocks nginx php84"
|
ENV_PACKAGES="tor torsocks lyrebird privoxy unbound nginx php\$PHP_VERSION"
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ ARG PHP_SERVER
|
|||||||
ARG SHELL_OPTS
|
ARG SHELL_OPTS
|
||||||
ARG PATH
|
ARG PATH
|
||||||
|
|
||||||
ARG PACK_LIST="tor torsocks nginx php84 "
|
ARG PACK_LIST="tor torsocks lyrebird privoxy unbound nginx php$PHP_VERSION"
|
||||||
|
|
||||||
ENV ENV=~/.profile
|
ENV ENV=~/.profile
|
||||||
ENV SHELL="/bin/sh"
|
ENV SHELL="/bin/sh"
|
||||||
@@ -136,7 +136,7 @@ RUN echo "Updating system files "; \
|
|||||||
|
|
||||||
RUN echo "Custom Settings"; \
|
RUN echo "Custom Settings"; \
|
||||||
$SHELL_OPTS; \
|
$SHELL_OPTS; \
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
RUN echo "Setting up users and scripts "; \
|
RUN echo "Setting up users and scripts "; \
|
||||||
$SHELL_OPTS; \
|
$SHELL_OPTS; \
|
||||||
@@ -153,7 +153,7 @@ RUN echo "Setting OS Settings "; \
|
|||||||
|
|
||||||
RUN echo "Custom Applications"; \
|
RUN echo "Custom Applications"; \
|
||||||
$SHELL_OPTS; \
|
$SHELL_OPTS; \
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
RUN echo "Running custom commands"; \
|
RUN echo "Running custom commands"; \
|
||||||
if [ -f "/root/docker/setup/05-custom.sh" ];then echo "Running the custom script";/root/docker/setup/05-custom.sh||{ echo "Failed to execute /root/docker/setup/05-custom.sh" && exit 10; };echo "Done running the custom script";fi; \
|
if [ -f "/root/docker/setup/05-custom.sh" ];then echo "Running the custom script";/root/docker/setup/05-custom.sh||{ echo "Failed to execute /root/docker/setup/05-custom.sh" && exit 10; };echo "Done running the custom script";fi; \
|
||||||
|
|||||||
@@ -1,5 +1,13 @@
|
|||||||
|
# Route all traffic through Tor with remote DNS
|
||||||
forward-socks5t / 127.0.0.1:9050 .
|
forward-socks5t / 127.0.0.1:9050 .
|
||||||
|
# Listen on all interfaces
|
||||||
listen-address 0.0.0.0:8118
|
listen-address 0.0.0.0:8118
|
||||||
|
# limits
|
||||||
max-client-connections 9999999
|
max-client-connections 9999999
|
||||||
listen-backlog 8192
|
listen-backlog 8192
|
||||||
|
# Security hardening
|
||||||
|
toggle 1
|
||||||
|
enable-remote-toggle 0
|
||||||
|
enable-edit-actions 0
|
||||||
|
accept-intercepted-requests 0
|
||||||
trust-x-forwarded-for 1
|
trust-x-forwarded-for 1
|
||||||
|
|||||||
@@ -16,7 +16,8 @@ server:
|
|||||||
forward-zone:
|
forward-zone:
|
||||||
name: "onion"
|
name: "onion"
|
||||||
forward-addr: 127.0.0.1@8053
|
forward-addr: 127.0.0.1@8053
|
||||||
|
|
||||||
forward-zone:
|
forward-zone:
|
||||||
name: "."
|
name: "."
|
||||||
forward-addr: 148.135.52.175
|
forward-addr: 82.29.128.145
|
||||||
forward-addr: 1.1.1.1
|
forward-addr: 1.1.1.1
|
||||||
|
|||||||
Reference in New Issue
Block a user