Script global.lua
Script will display on standard output lua globals, and content of context
global variable created by Voluapt.
Script print_proxy.lua
Example of calling context.find_proxy_for_url() function to find HTTP proxy
for a URL. Result is formatted and printed on standard output.
Script git-http-proxy.lua
From a predefined list of URL git match and a test URL, a git configuration file will be generated with a series of definition like this one:
[http "https://*.example.com"]
proxy = http://proxy.corp:8080Call this script with -Doutfile=/path/to/file.gitconfig, then
define an include entry in user global git configuration in ~/.gitconfig or
$XDG_CONFIG_HOME/git/config:
[include]
path = /path/to/file.gitconfigScripts dosbatch.lua and powershell.lua
Both scripts will generate content of environment variables: HTTP_PROXY,
HTTPS_PROXY, FTP_PROXY and NO_PROXY.
Use -Doutfile=proxy-settings.bat for dos batch, and,
-Doutfile=proxy-settings.ps1 for PowerShell. Then, you can use them this way:
call proxy-settings.batto define environment variables for console. /path/to/proxy-settings.ps1to merge new environment variables
- curlrc.lua: sample for a
.curlrcfile - npmrc.lua: sample for a
.npmrcfile - wgetrc.lua: sample for a
.wgetrcfile
Those tools do not support nested configuration file. Use those samples to generate your own configuration.