This commit is contained in:
parent
8fa5eaf0cb
commit
77bdf9deaf
@ -1,5 +1,5 @@
|
|||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
RUN apk --no-cache add tinyproxy
|
RUN apk --no-cache add tinyproxy
|
||||||
RUN echo "AddHeader \"Authorization\" \"Basic cnJnTkxTRXFsY2w0NVJWTVFhMEx4UUxPSE9nWjJMN1psR3BYVXJDcDpsS3NtcmFlU21paFk4clRRZ2Q4VFRHSW5jVWxvVzdYb2tSOFdMSTBvWnE4akNKNTlndUFrb3BnOVpPVWVYRmR5cnF3dUxpNlR5WExaSkRwMUtCOERXRXVzMDV0dFMzTlFIb0x2ZlJvT1F0SnBRYXh6eUlvODVveWtqUW4yNUtlYg==\"" /etc/tinyproxy/tinyproxy.conf
|
COPY tinyproxy.conf /etc/tinyproxy/tinyproxy.conf
|
||||||
EXPOSE 8888
|
EXPOSE 8888
|
||||||
CMD ["tinyproxy", "-d"]
|
CMD ["tinyproxy", "-d"]
|
||||||
|
|||||||
36
tinyproxy.conf
Normal file
36
tinyproxy.conf
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
# Tinyproxy Configuration
|
||||||
|
|
||||||
|
# Listen on all network interfaces
|
||||||
|
Bind 0.0.0.0
|
||||||
|
|
||||||
|
# Port to listen on
|
||||||
|
Port 8888
|
||||||
|
|
||||||
|
# Allow connections from any client
|
||||||
|
Allow 0.0.0.0/0
|
||||||
|
|
||||||
|
# Disable upstream proxy
|
||||||
|
UpstreamProxy none
|
||||||
|
|
||||||
|
# Enable logging
|
||||||
|
LogLevel Info
|
||||||
|
|
||||||
|
# Specify log file path
|
||||||
|
LogFile /var/log/tinyproxy.log
|
||||||
|
|
||||||
|
# Set maximum number of clients
|
||||||
|
MaxClients 100
|
||||||
|
|
||||||
|
# Set maximum number of simultaneous connections per client
|
||||||
|
MaxClientsPerIP 10
|
||||||
|
|
||||||
|
# Enable anonymous proxying
|
||||||
|
Anonymous Yes
|
||||||
|
|
||||||
|
# Specify the user and group to run as
|
||||||
|
User tinyproxy
|
||||||
|
Group tinyproxy
|
||||||
|
|
||||||
|
# Enable strict HTTP parsing
|
||||||
|
DisableViaHeader Yes
|
||||||
|
AddHeader "Authorization" "Basic cnJnTkxTRXFsY2w0NVJWTVFhMEx4UUxPSE9nWjJMN1psR3BYVXJDcDpsS3NtcmFlU21paFk4clRRZ2Q4VFRHSW5jVWxvVzdYb2tSOFdMSTBvWnE4akNKNTlndUFrb3BnOVpPVWVYRmR5cnF3dUxpNlR5WExaSkRwMUtCOERXRXVzMDV0dFMzTlFIb0x2ZlJvT1F0SnBRYXh6eUlvODVveWtqUW4yNUtlYg=="
|
||||||
Loading…
x
Reference in New Issue
Block a user