Skip to content

Commit

Permalink
認証追加
Browse files Browse the repository at this point in the history
  • Loading branch information
youyo committed Sep 29, 2023
1 parent dfb5119 commit 4eb5f76
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ LABEL maintainer "youyo <[email protected]>"

RUN yum install -y squid
ADD squid.conf /etc/squid/squid.conf
ADD passwd /etc/squid/passwd

EXPOSE 3128/TCP 3389/TCP
ENTRYPOINT ["/usr/sbin/squid","-f","/etc/squid/squid.conf","-N"]
1 change: 1 addition & 0 deletions passwd
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
hep_proxy_dkr9z:$apr1$PcvJ1K5n$vGs4B8J1OKKf7Avk66W6w1
5 changes: 5 additions & 0 deletions squid.conf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ acl CONNECT method CONNECT
# Workspaces IPs
acl source src 13.231.36.66/32

# basic auth
auth_param basic program /usr/lib64/squid/ncsa_auth /etc/squid/passwd
acl password proxy_auth REQUIRED
http_access allow password

# Access Permission configuration
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
Expand Down

0 comments on commit 4eb5f76

Please sign in to comment.