セルフホスト型のLiveAgentをご利用のお客様は、SalesforcePipedriveなどの設定データを必要とする機能を使用する場合、独自のconfig.ymlファイルを作成する必要があります。config.ymlファイルはLiveAgentのインストールディレクトリ外に配置することを推奨します。

このファイルはインデントに対して厳密であることに注意してください。

config.ymlファイルの例:

################################################################################
## Plugins configuration
################################################################################
# This section is for LiveAgent plugins that require configuration, such as OAuth2 credentials.
# Any text inside curly braces {} is a placeholder and should be replaced with your own values.
plugin:
  pipedrive:
    client_id: {your client_id}
    client_secret: {your client_secret}
    # To obtain the "client_id" and "client_secret" you need a Pipedrive developer account and create a new private app.
    redirect_url: https://{your LiveAgent domain}/public/plugins/pipedrive/oauth/callback
    # The "redirect_url" must be also configured in your Pipedrive private app settings as Callback URL.

  salesforce:
    consumer_key: {your consumer_key}
    consumer_secret: {your consumer_secret}
    # To obtain the "consumer_key" and "consumer_secret" you need a Salesforce developer account and create a new app.
    redirect_url: https://{your LiveAgent domain}/public/plugins/salesforce/oauth/callback
    # The "redirect_url" must be also configured in your Salesforce app settings as Callback URL.

また、Apacheの設定ファイルに以下の行を追加する必要があります。

config.ymlファイルへのパスは適宜変更してください。

SetEnv LIVEAGENT_CONFIG_FILE "/var/www/config.yml"

Apacheの設定例:

ポート80とポート443の両方でVirtualHostを設定している場合、SetEnvの記述は両方のブロックに追加する必要があります。

<VirtualHost *:80>
    DocumentRoot "/var/www/LiveAgent"
    ServerName MyLiveAgent.com

    # Other settings

    SetEnv LIVEAGENT_CONFIG_FILE "/var/www/config.yml"
</VirtualHost>