本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
組態檔案
組態檔案是指定某些組態選項和認證的第三種方式。默認情況下,它在 zip 文件中提供/conf/dcvsmcli.conf
。
用戶可以在命令行指定配置文件的路徑。如果用戶沒有明確指定配置文件,則默認情況下將根據操作系統從特定文件夾中讀取配置文件:
基於 Unix 的系統:
$XDG_CONFIG_HOME/dcvsmcli.conf
視窗系統:
%UserProfile%\dcvsmcli.conf
如果找不到組態檔案,會從 zip 檔案/conf/dcvsmcli.conf
提供的路徑CLI讀取檔案。組態檔案的結構如下:
[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?grant_type=client_credentials # 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