Chapter 9. Modifying the configuration of the command-line assistant
The command-line assistant daemon (clad) is the core of the command-line assistant. clad manages communication with Red Hat Lightspeed services, such as user history management.
Optional: Modify the command-line assistant configuration to use a network proxy or different database for Red Hat Lightspeed integration.
9.1. Setting up a proxy configuration Copy linkLink copied to clipboard!
If you need a proxy for Internet access, you can set up a proxy configuration by making the following changes in the config.toml configuration file.
Prerequisites
- The command-line assistant is installed.
Procedure
-
Access the proxy configuration by opening the
/etc/xdg/command-line-assistant/config.tomlconfiguration file. Locate and change the following block in the
config.tomlfile :# Backend settings for communicating with the external API. [backend] ... # proxies = { http = "http://example-host:8002", https = "https://example-host:8002" }Uncomment the
proxieskey and define yourhttporhttpsproxy host:[backend] … # For a https proxy host proxies = { https = "https://<your_https_proxy_host:1234>"}After making the changes, restart
cladfor the changes to be effective:$ sudo systemctl restart cladNoteYou can use the
httpvalue andhttpskey control whethercladrouteshttporhttpstraffic to the specified proxy. However, the protocol does not influence proxy type selection, and you can configure anhttpproxy forhttpstraffic. For example:+
https = "http://<your_https_proxy_host:1234>"