initial
This commit is contained in:
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
*~
|
||||||
|
.*~
|
||||||
|
ENV
|
||||||
|
ENV.test
|
||||||
|
tmp/
|
18
Dockerfile
Normal file
18
Dockerfile
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
FROM alpine:3.21.3
|
||||||
|
|
||||||
|
LABEL Maintainer="Wolfgang Hottgenroth <woho@hottis.de>"
|
||||||
|
|
||||||
|
ENV ALLOWED_NETWORK="127.0.0.1/32"
|
||||||
|
|
||||||
|
RUN apk add --no-cache tinyproxy m4
|
||||||
|
|
||||||
|
COPY tinyproxy.conf.m4 /etc/tinyproxy
|
||||||
|
COPY start.sh /etc/tinyproxy
|
||||||
|
|
||||||
|
WORKDIR /etc/tinyproxy
|
||||||
|
|
||||||
|
EXPOSE 3128
|
||||||
|
|
||||||
|
CMD [ "./start.sh" ]
|
||||||
|
|
||||||
|
|
4
start.sh
Executable file
4
start.sh
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
m4 tinyproxy.conf.m4 > tinyproxy.conf && tinyproxy -d -c /etc/tinyproxy/tinyproxy.conf
|
||||||
|
|
21
tinyproxy.conf.m4
Normal file
21
tinyproxy.conf.m4
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
dnl values
|
||||||
|
define(`ALLOWED_NETWORK', esyscmd(`echo -n $ALLOWED_NETWORK'))dnl
|
||||||
|
|
||||||
|
|
||||||
|
dnl --------------------------------------------------------------
|
||||||
|
dnl template for tinyproxy.conf
|
||||||
|
|
||||||
|
Port 3128
|
||||||
|
Listen 0.0.0.0
|
||||||
|
|
||||||
|
User nobody
|
||||||
|
Group nobody
|
||||||
|
|
||||||
|
LogLevel Info
|
||||||
|
|
||||||
|
Allow ALLOWED_NETWORK
|
||||||
|
|
||||||
|
ConnectPort 443
|
||||||
|
|
||||||
|
Timeout 600
|
||||||
|
|
Reference in New Issue
Block a user