Giter Site home page Giter Site logo

tardo / docker-privoxy-https Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 87 KB

Alpine docker with privoxy enabled to work with HTTPS

Home Page: https://hub.docker.com/r/ghtardo/docker-privoxy-https

Dockerfile 5.55% Shell 69.69% Python 23.88% JavaScript 0.88%
alpine docker https privoxy

docker-privoxy-https's Introduction

Docker Privoxy HTTPS

๐Ÿ“ƒ About

Alpine docker with privoxy enabled and configured to work with HTTPS.

It also includes the script made by 'Andrwe Lord Weber' to translate adblock rules to privoxy.

The default configuration is intended for personal use only (ex. raspberry)

๐Ÿ’ก Documentation

This image downloads the 'trustedCAs' file from curl.se and also generates the ca-bundle file. So, you only need copy the 'ca-bundle' file and install it on your browser/system.

Privoxy Status Page: https://config.privoxy.org/show-status

Env. Variables

Name Description Default
ADBLOCK_URLS String of urls separated by spaces ""
ADBLOCK_FILTERS String of filters separated by spaces ""
  • Can get urls from: https://easylist.to/
  • Can know the available filters with docker exec privoxy privoxy-blocklist --help

Docker

docker run -d --restart unless-stopped --name privoxy -p 8118:8118 -v privoxy-ca:/usr/local/etc/privoxy/CA ghtardo/docker-privoxy-https

Docker Compose

services:
  privoxy:
    image: ghtardo/docker-privoxy-https
    container_name: privoxy
    ports:
      - 8118:8118
    environment:
      - TZ=Europe/Madrid
      - ADBLOCK_URLS=https://easylist.to/easylist/easylist.txt
    volumes:
      - privoxy-ca:/usr/local/etc/privoxy/CA
    restart: unless-stopped
    hostname: "privoxy"

volumes:
    privoxy-ca:

Get ca-bundle

docker cp privoxy:/usr/local/etc/privoxy/CA/privoxy-ca-bundle.crt .

๐Ÿ“ Privoxy Manager Script (privman)

  • Update the Trusted CA file: docker exec privoxy privman --update-trusted-ca
  • Regenerate the .crt bundle: docker exec privoxy privman --regenerate-crt-bundle
  • Update 'adblock' filters: docker exec privoxy privman --update-adblock-filters
  • Block a domain to the blacklist: docker exec privoxy privman --add-blacklist .google. .facebook.
  • Remove a domain from the blacklist: docker exec privoxy privman --remove-blacklist .facebook.

๐Ÿ“„ Configuration highlight changes

  • actionsfile privman-rules/user.action > Where are the privman rules (empty by default)
  • filterfile privman-rules/user.filter > Predefined privman aliases
  • buffer-limit > Increased to 25600KB (25MB)
  • keep-alive-timeout > Increased to 600 seconds
  • socket-timeout > Decreased to 5 seconds
  • max-client-connections > Increased to 512
  • listen-backlog > Set to -1 (maximum queue length allowed)
  • receive-buffer-size > Increased to 65536 bytes

๐Ÿ”– Points of Interest

Container Path Description
/usr/local/etc/privoxy/ Where privoxy files are located
/usr/local/etc/privoxy/config The configuration file
/usr/local/etc/privoxy/CA Where auth. certs are located
/usr/local/etc/privoxy/certs Where privoxy stores the downloaded certificates
/var/lib/privoxy Where are the scripts related to privoxy

๐Ÿ’ป Privoxy Compiler Options

  • --disable-toggle
  • --disable-editor
  • --disable-force
  • --with-openssl
  • --with-brotli

docker-privoxy-https's People

Contributors

tardo avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

docker-privoxy-https's Issues

PermissionError: [Errno 13] Permission denied: '/usr/local/etc/privoxy/CA/trustedCAs.pem'

Hello people from this docker project. I was trying to run the docker via docker-compose and I got this error

Attaching to privoxy
privoxy | Traceback (most recent call last):
privoxy | File "/usr/local/bin/privman", line 227, in
privoxy | update_trusted_ca()
privoxy | File "/usr/local/bin/privman", line 29, in update_trusted_ca
privoxy | urllib.request.urlretrieve('https://curl.se/ca/cacert.pem', trusted_ca_file)
privoxy | File "/usr/lib/python3.11/urllib/request.py", line 251, in urlretrieve
privoxy | tfp = open(filename, 'wb')
privoxy | ^^^^^^^^^^^^^^^^^^^^
privoxy | PermissionError: [Errno 13] Permission denied: '/usr/local/etc/privoxy/CA/trustedCAs.pem'
privoxy exited with code 0

I guess there is a permission issue somewhere in the Dockerfile. I tried running the docker manually but I get the same issue.

Best regards.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.