1+(91) 458 654 528 info@domain.com

NextLand Child

Define Your Key File Path

Estimated reading: 2 minutes

You must copy your GCP Key File to your WordPress site’s server so that Next3 Offload can utilize it when connecting with the GCS service now that you have your key file.

We recommend defining your access keys in your wp-config.php file for increased security:

define( 'NEXT3_SETTINGS', serialize( array(

    'provider' => 'gcp',

    'access-key-id' => '********************',

    'secret-access-key' => '**************************************',

) ) );  

MPORTANT: The whole path to the file on the server must be an absolute file path and must be available by the web server process that PHP is executed under. Replace the string “/path/to/key/file.json” in the example above with the full path. Avoid keeping the file in the site’s own directory hierarchy, where anyone could download it, for security reasons.

These ought to appear in your wp-config.php file before the following comment:

/** Absolute path to the WordPress directory. */

if ( !defined('ABSPATH') )

    define('ABSPATH', dirname(__FILE__) . '/');

/** Sets up WordPress vars and included files. */

require_once(ABSPATH . 'wp-settings.php')

Warning: If the definition is added after this comment, WP Offload Media won’t be able to read its settings in time to be beneficial, and strange things will happen as a result.

As an alternative, you can fill out the form on the Storage Provider page of Next3 Offload, which is the first page displayed when no keys are defined, with the information from your key file. The credentials will be saved to the

database, which is less secure than defining them in your wp-config.php.

Leave a Reply