# LocalPac [](https://travis-ci.org/dg-vrnetze/local_pac) [](https://codeclimate.com/github/dg-vrnetze/local_pac) [](https://coveralls.io/r/dg-vrnetze/local_pac?branch=master) [](http://badge.fury.io/rb/local_pac) `local_pac` *serves two main purposes:* 1. Serve proxy.pac-files compressed from a git repository. 2. Lookup of url in proxy.pac to find out which proxy will be used. *Behind the scenes it uses ...* * a javascript compressor ([uglifier](https://github.com/lautis/uglifier)) * a proxy-pac parser ([ruby-pac](https://github.com/samuelkadolph/ruby-pac)) * a vcs library ([rugged](https://github.com/libgit2/rugged)) * etc. *Possible use cases:* * Administrator serving proxy.pacs to thousands of clients * Internal developer using virtual machines on her laptop to develop web applications but who still needs access to external web applications via internal proxy * Developer/Consultant using a vpn connection to her customer + internal proxy/socks proxy, but still needs direct access to the internet web applications * Supporter who needs to support thousand of clients and needs to check which internal proxies is used for a given url * Curious people loving git and using it for every possible use case ;-) ## Screenshots *Search for a url*  *Pretty result for a url*  *Raw result for a url*  ## Installation ### RubyGems Add this line to your application's Gemfile: gem 'local_pac' And then execute: $ bundle Or install it yourself as: $ gem install local_pac ### Arch Linux ```bash # Install via yaourt yaourt -S local_pac # Install via cower + makepkg cower -d local_pac cd
Option | Default value | Description |
---|---|---|
:local_storage | $HOME/.local/share/local_pac/data/storage.git | Path to git-(bare)-repository to store the proxy.pac-files. This is not for direct use! |
:executable | /path/to/gem/bin/local_pac | Internal use only |
:pid_file | $HOME/.local/share/local_pac/run/pid | If would do not use `systemd`, but want to run `local_pac` as a system service, you might need a pid file for your init-daemon. |
:gem_path | `ruby -rrubygems -e 'puts Gem.path.join(", ")'` | Internal use only |
:access_log | $HOME/home/xgvndeg/.local/share/local_pac/log/access.log | Write access to the file in production and test environment. |
:sass_cache | $HOME/home/xgvndeg/.local/share/local_pac/cache | Cache for assets for the lookup of urls |
:config_file | No default | Internal use only |