Utility command for
- Creating PAC(Proxy Auto-Config) file
- Uploading created PAC file
It's too much bother to configure for proxy tools (Charles Web Debugging Proxy, mitmproxy and more) on mobile(Android, iPhone). Because you have to set the proxy destination when the proxy server's IP address changes.
This tool is to help you to create PAC file and upload it to Amazon S3. You just have to do is configure proxy for PAC. That's it.
Config file locate at ~/.pac/config.yml
. You have to config for PAC file location.
---
s3:
bucket: your-s3-bucket-name
path: /
---
gcs:
bucket: 'your-gcs-bucket-name'
path: /
$ pac enable
It is using aws
command. . You have to setup authorization before use this.
Set PAC URL to Proxy configuration on mobile
https://your-s3-bucket-name.s3.amazonaws.com/your-name.pac
$ pac disable
$ brew tap tomorrowkey/self
$ brew update && brew install tomorrowkey/self/pac
Copyright 2019 tomorrowkey
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.