本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
配置文件
配置文件是指定一些配置选项和凭据的第三种方法。默认情况下,它在 zip 文件中提供/conf/dcvsmcli.conf
.
用户可以在命令行指定配置文件的路径。如果用户没有明确指定配置文件,默认情况下将根据操作系统从特定文件夹中读取该文件:
基于 Unix 的系统:
$XDG_CONFIG_HOME/dcvsmcli.conf
Windows 系统:
%UserProfile%\dcvsmcli.conf
如果找不到配置文件,CLI 将从路径中读取该文件/conf/dcvsmcli.conf
随 zip 文件提供。配置文件的结构如下:
[output] # The formatting style for command output. output-format = json # Turn on debug logging debug = true [security] # Disable SSL certificates verification. no-verify-ssl = true # CA certificate bundle to use when verifying SSL certificates. ca-bundle = ca-bundle.pem [authentication] # hostname of the authentication server used to request the token auth-server-url = https://broker-host:broker-port/oauth2/token # The client ID client-id = username # The client password client-password = password [broker] # hostname or IP of the broker url = https://broker-host:broker-port