Created
July 1, 2023 22:09
-
-
Save nsuvorov83/a880d4e4ff7cdc75040e65254f9d61b9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #For digest auth | |
| http_port 3128 | |
| via off | |
| cache deny all | |
| auth_param digest program /usr/lib/squid/digest_file_auth -c /etc/squid/users | |
| auth_param digest children 5 | |
| auth_param digest realm PASS-PLEASE | |
| auth_param basic credentialsttl 1 minute | |
| auth_param basic casesensitive off | |
| acl auth_users proxy_auth REQUIRED | |
| http_access allow auth_users | |
| http_access deny all | |
| ## IMPORTANT! | |
| # To generate file 'users' enter: htdigest -c /etc/squid/users 'PASS-PLEASE' username | |
| # realm in auth_param and realm in the command above MUST BE the same ('PASS-PLEASE'). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment