On this page
独自のconfig.ymlファイルの作成
セルフホスト型のLiveAgentをご利用のお客様は、SalesforceやPipedrive連携のような設定データを必要とする機能を使用する場合、独自に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>