第 9 章 Modifying the configuration of the command-line assistant
The command-line assistant daemon (clad) is the core of the command-line assistant powered by RHEL Lightspeed. clad manages communication with Red Hat Lightspeed services, such as user history management.
Optionally, to integrate the Red Hat Lightspeed services with your existing infrastructure, you can modify the configuration of the command-line assistant to use a network proxy or connect to a different database.
9.1. Setting up a proxy configuration 复制链接链接已复制到粘贴板!
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 powered by RHEL Lightspeed 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 clad注意You can use the
httpvalue andhttpskey control if the http or https traffic fromcladis routed to the specified proxy. However, the protocol does not influence the proxy type selection, and you can have a configuration that uses http proxy for https traffic. For example:https = "http://<your_https_proxy_host:1234>"