1
0
mirror of synced 2025-07-19 05:03:13 +03:00

Proxy problems (#2165)

* Fix proxy problems

* Auto redirect problem (http → https → https)
This commit is contained in:
yhirose
2025-06-28 00:14:01 -04:00
committed by GitHub
parent 696c02f2bc
commit e1ab5a604b
6 changed files with 180 additions and 29 deletions

View File

@ -1,9 +1,9 @@
FROM centos:7
FROM alpine:latest
ARG auth="basic"
ARG port="3128"
RUN yum install -y squid
RUN apk update && apk add --no-cache squid
COPY ./${auth}_squid.conf /etc/squid/squid.conf
COPY ./${auth}_passwd /etc/squid/passwd

View File

@ -27,7 +27,7 @@ acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
auth_param basic program /usr/lib64/squid/basic_ncsa_auth /etc/squid/passwd
auth_param basic program /usr/lib/squid/basic_ncsa_auth /etc/squid/passwd
auth_param basic realm proxy
acl authenticated proxy_auth REQUIRED
http_access allow authenticated

View File

@ -27,7 +27,7 @@ acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
auth_param digest program /usr/lib64/squid/digest_file_auth /etc/squid/passwd
auth_param digest program /usr/lib/squid/digest_file_auth /etc/squid/passwd
auth_param digest realm proxy
acl authenticated proxy_auth REQUIRED
http_access allow authenticated

View File

@ -1,5 +1,3 @@
version: '2'
services:
squid_basic:
image: squid_basic