web-proxy-settings

web-proxy-settings

This command allows you to configure proxy settings for the application.

Running the command without any parameters will display the current configuration:

sqlbak web-proxy-settings get

To modify proxy settings:

1. Save the current proxy configuration to a file using:

sqlbak web-proxy-settings get --save-to-file=/path/to/web-proxy-settings.json

The settings file will look like this:

{
"proxy_type": "none",
"address": "",
"bypass_proxy_on_local": true,
"bypass_list": [],
"use_default_credentials": true,
"user_name": "",
"password": "",
"domain": ""
}

2. Edit this file as needed.

Below is a description of the configuration file fields:

  • proxy_type – Specifies the type of proxy in use (for example, none, system_default, custom).-
  • address  – Indicates the address (URL or IP) and, if necessary, the port of the proxy server.
  • bypass_proxy_on_local  – When set to true, local addresses are not routed through the proxy.
  • bypass_list – A list of addresses (or domains) that should not use the proxy.
  • use_default_credentials – When set to true, it uses the operating system’s default credentials for authentication.\
  • user_name – The username for proxy server authentication.
  • password – The password for proxy server authentication.
  • domain – The domain to use in a corporate environment requiring domain-based authentication.

3. After editing the file, apply the new settings using:

sqlbak web-proxy-settings set --load-from-file=/path/to/web-proxy-settings.json

4. To reset the proxy settings to default:

sqlbak web-proxy-settings reset