mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-02-03 13:21:49 +02:00
add privoxy-arm
This commit is contained in:
parent
c28d80ef96
commit
cc5f24bcc0
@ -92,6 +92,7 @@ A collection of delicious docker recipes.
|
||||
- [x] portia
|
||||
- [x] pptpd
|
||||
- [x] privoxy
|
||||
- [x] privoxy-arm
|
||||
- [x] proxyhub
|
||||
- [x] pure-ftpd
|
||||
- [x] red5-server
|
||||
|
24
privoxy/arm/Dockerfile
Normal file
24
privoxy/arm/Dockerfile
Normal file
@ -0,0 +1,24 @@
|
||||
#
|
||||
# Dockerfile for privoxy-arm
|
||||
#
|
||||
|
||||
FROM easypi/alpine-arm
|
||||
MAINTAINER kev <noreply@easypi.info>
|
||||
|
||||
RUN set -xe \
|
||||
&& apk add -U curl privoxy \
|
||||
&& curl -sSL https://github.com/tianon/gosu/releases/download/1.9/gosu-armhf > /usr/sbin/gosu \
|
||||
&& chmod +x /usr/sbin/gosu \
|
||||
&& apk del curl \
|
||||
&& rm -rf /var/cache/apk/*
|
||||
|
||||
RUN sed -i -e '/^listen-address/s/127.0.0.1/0.0.0.0/' \
|
||||
-e '/^accept-intercepted-requests/s/0/1/' \
|
||||
-e '/^enforce-blocks/s/0/1/' \
|
||||
-e '/^#debug/s/#//' /etc/privoxy/config
|
||||
|
||||
VOLUME /etc/privoxy
|
||||
|
||||
EXPOSE 8118
|
||||
|
||||
CMD gosu privoxy privoxy --no-daemon /etc/privoxy/config
|
8
privoxy/arm/docker-compose.yml
Normal file
8
privoxy/arm/docker-compose.yml
Normal file
@ -0,0 +1,8 @@
|
||||
privoxy:
|
||||
image: easypi/privoxy-arm
|
||||
ports:
|
||||
- "8118:8118"
|
||||
volumes:
|
||||
- ./privoxy/user.action:/etc/privoxy/user.action
|
||||
- ./privoxy/user.filter:/etc/privoxy/user.filter
|
||||
restart: always
|
@ -5,6 +5,4 @@ privoxy:
|
||||
volumes:
|
||||
- ./privoxy/user.action:/etc/privoxy/user.action
|
||||
- ./privoxy/user.filter:/etc/privoxy/user.filter
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
restart: always
|
||||
|
@ -1,4 +1,8 @@
|
||||
FILTER: rot rotate image
|
||||
s|</head>|<style>img{transform: rotate(180deg);}</style></head>|gisU
|
||||
|
||||
FILTER: white
|
||||
s|</body>|<style>*{color: white !important;}</style></body>|gisU
|
||||
|
||||
FILTER: hacked
|
||||
s|</body>|<script>document.body.innerHTML='<h1>you are hacked!</h1>'</script></body>|gisU
|
||||
|
Loading…
x
Reference in New Issue
Block a user