Skip to content

Commit a9f8b7f

Browse files
committed
Dockerfile add
1 parent 4d408db commit a9f8b7f

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

Dockerfile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# ### BUILD MAIN IMAGE START ###
2+
FROM ubuntu
3+
4+
RUN apt update && apt -y install curl systemd tor tor-geoipdb privoxy
5+
COPY ./privoxy.config /etc/privoxy/config
6+
7+
COPY ./install.sh /
8+
COPY ./update.sh /
9+
10+
RUN sh /install.sh
11+
12+
WORKDIR /home/jacred
13+
14+
RUN crontab Data/crontab
15+
16+
EXPOSE 9117
17+
18+
VOLUME [ "/home/jacred/init.conf" ]
19+
20+
ENTRYPOINT ["/lib/systemd/systemd"]
21+
### BUILD MAIN IMAGE end ###

privoxy.config

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Generally, this file goes in /etc/privoxy/config
2+
#
3+
# Tor listens as a SOCKS5 proxy here:
4+
forward-socks5 / 127.0.0.1:9050 .
5+
confdir /etc/privoxy
6+
logdir /var/log/privoxy
7+
# actionsfile standard # Internal purpose, recommended
8+
actionsfile default.action # Main actions file
9+
actionsfile user.action # User customizations
10+
filterfile default.filter
11+
12+
# Don't log interesting things, only startup messages, warnings and errors
13+
logfile logfile
14+
#jarfile jarfile
15+
#debug 0 # show each GET/POST/CONNECT request
16+
debug 4096 # Startup banner and warnings
17+
debug 8192 # Errors - *we highly recommended enabling this*
18+
19+
user-manual /usr/share/doc/privoxy/user-manual
20+
listen-address 127.0.0.1:8118
21+
toggle 1
22+
enable-remote-toggle 0
23+
enable-edit-actions 0
24+
enable-remote-http-toggle 0
25+
buffer-limit 4096

0 commit comments

Comments
 (0)