Skip to content

Commit 930c1a3

Browse files
committed
fix: Dockerfile
1 parent da83e9f commit 930c1a3

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,13 @@ ENV PRIVOXY_PORT=8118 \
8080

8181
# Create Privoxy User
8282
RUN set -ex; \
83-
addgroup --gid 7777 --system privoxy; \
84-
adduser \
85-
--disabled-password \
86-
--home /var/lib/privoxy/ \
87-
--ingroup privoxy \
83+
groupadd --gid 7777 --system privoxy; \
84+
useradd \
85+
--home-dir /var/lib/privoxy/ \
8886
--no-create-home \
8987
--system \
9088
--uid 7777 \
89+
--gid 7777 \
9190
privoxy; \
9291
mkdir /var/lib/privoxy/; \
9392
chown privoxy:privoxy /var/lib/privoxy/;

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Image with [privoxy](https://www.privoxy.org) enabled and configured to work with HTTPS.
66

7-
It also includes '[adblock2privoxy](https://github.com/essandess/adblock2privoxy)' to translate adblock rules to privoxy with CSS hidden elements & blackhole.
7+
It also includes '[ab2p](https://github.com/essandess/adblock2privoxy)' (adblock2privoxy) to translate adblock rules to privoxy with CSS hidden elements & blackhole.
88
This means that this image also includes an nginx server so that the advanced CSS rules work correctly.
99

1010
## :bulb: Documentation
@@ -24,18 +24,18 @@ This image downloads the 'trustedCAs' file from curl.se and also generates the c
2424
| PORT | Description | Required |
2525
|----------------|-------------|-------------|
2626
| 8118 | Privoxy | :heavy_check_mark: |
27-
| 80 | Nginx | |
28-
| 443 | Nginx SSL | |
27+
| 80 | Nginx | If you use the ab2p rules |
28+
| 443 | Nginx SSL | If you use the ab2p rules |
2929

3030

3131
### Env. Variables
3232

3333
| Name | Description | Default |
3434
|----------------|-------------|-------------|
3535
| PRIVOXY_PORT | The Privoxy port | 8118 |
36-
| ADBLOCK_URLS | String of urls separated by spaces | "" |
36+
| ADBLOCK_URLS | URLs separated by spaces | "" |
3737
| ADBLOCK_CSS_DOMAIN | A domain/IP that points to the container (IP:PORT) | 172.17.0.2 |
38-
| ADBLOCK_NGINX_ENABLED | The server to use to get the css files | true |
38+
| ADBLOCK_NGINX_ENABLED | Enable NGINX | true |
3939
| NGINX_SERVER_NAME | The server name for verification process (must coincide with ADBLOCK_CSS_DOMAIN name part) | 172.17.0.2 |
4040
| NGINX_PORT | The HTTP port | 80 |
4141
| NGINX_PORT_SSL | The HTTPS port | 443 |
@@ -92,6 +92,10 @@ docker cp privoxy:/usr/local/etc/privoxy/CA/privoxy-ca-bundle.crt .
9292

9393
- `actionsfile privman-rules/user.action` > Where are the privman rules (empty by default)
9494
- `filterfile privman-rules/user.filter` > Predefined privman aliases
95+
- `actionsfile ab2p.system.action` > adblock2privoxy
96+
- `actionsfile ab2p.action` > adblock2privoxy
97+
- `filterfile ab2p.system.filter` > adblock2privoxy
98+
- `filterfile ab2p.filter` > adblock2privoxy
9599
- `buffer-limit` > Increased to 25600KB (25MB)
96100
- `keep-alive-timeout` > Increased to 120 seconds
97101
- `socket-timeout` > Decreased to 150 seconds

0 commit comments

Comments
 (0)