conf
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
Jakub K 2024-02-01 23:40:04 +01:00
parent 8fa5eaf0cb
commit 77bdf9deaf
2 changed files with 37 additions and 1 deletions

View File

@ -1,5 +1,5 @@
FROM alpine:latest
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
CMD ["tinyproxy", "-d"]

36
tinyproxy.conf Normal file
View 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=="