組態檔案 - NICE DCV 工作階段管理員

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

組態檔案

配置文件是指定某些配置選項和憑據的第三種方法。默認情況下,它在 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