This commit is contained in:
2025-04-08 22:43:16 +02:00
commit 49281a99a4
4 changed files with 48 additions and 0 deletions

5
.gitignore vendored Normal file
View File

@ -0,0 +1,5 @@
*~
.*~
ENV
ENV.test
tmp/

18
Dockerfile Normal file
View 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
View 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
View 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