mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
Also re-arranges web content by using old content from lib/web into lib/webserver, while new lib/web contains the proxy configuration. Fixes #19
857 B
857 B
Enable Proxy Server
With Icinga PowerShell Framework v1.3.0 we added support for using Proxy servers while using web requests to download and fetch information. For this we added a custom function Invoke-IcingaWebRequest as wrapper function for Invoke-WebRequest.
Enable Proxy Server Support
To enable the proxy server support, you simply have to use the Cmdlet Set-IcingaFrameworkProxyServer and set your proxy server:
Set-IcingaFrameworkProxyServer -Server 'http://example.com:8080';
Once set, the Framework will automatically use this server configuration for all web requests.
Disable Proxy Server Support
To disable the proxy server, you can use the same Cmdlet again, but leaving the argument empty.
Set-IcingaFrameworkProxyServer;
Now all web requests are executed without the proxy server.