尝试从php中的https到达arangodb数据库

时间:2019-06-11 05:04:11

标签: php arangodb arangodb-php

我正在尝试从Godaddy的https域访问位于aws中的arangodb数据库。我正在为arangodb使用php库。我知道由于我的情况,应该有一些额外的配置,但是我不知道是哪一种。这是我当前的配置:

$connectionOptions =array(
// server endpoint to connect to
ConnectionOptions::OPTION_ENDPOINT => 'ssl://54.226.203.141:8529',
// authorization type to use (currently supported: 'Basic')
ConnectionOptions::OPTION_AUTH_TYPE => 'Basic',
// user for basic authorization
ConnectionOptions::OPTION_AUTH_USER => 'root',
// password for basic authorization
ConnectionOptions::OPTION_AUTH_PASSWD => 'not sharing for obvious reasons',
// connection persistence on server. can use either 'Close' (one-time connections) or 'Keep-Alive' (re-used connections)
ConnectionOptions::OPTION_CONNECTION => 'Close',
// connect timeout in seconds
ConnectionOptions::OPTION_DATABASE=>'ShareOn',
ConnectionOptions::OPTION_TIMEOUT => 3,
// whether or not to reconnect when a keep-alive connection has timed out on server
ConnectionOptions::OPTION_RECONNECT => true,
// optionally create new collections when inserting documents
ConnectionOptions::OPTION_CREATE => true,
// optionally create new collections when inserting documents
ConnectionOptions::OPTION_UPDATE_POLICY => UpdatePolicy::LAST,
ConnectionOptions::OPTION_VERIFY_CERT => true,
ConnectionOptions::OPTION_CIPHERS=>???,);

我需要做什么才能使其正常工作?预先感谢任何可能提供帮助的人。

0 个答案:

没有答案