• Resolved mvaneijgen

    (@mvaneijgen)


    I though it would be as simple as setting but this isn’t the case.

    define( 'ILAB_AWS_S3_ACCESS_KEY', '**************' );

Viewing 3 replies - 1 through 3 (of 3 total)
  • No, but you can set env variables from your wp-config.php:

    putenv(“ILAB_AWS_S3_BUCKET=my-wp-bucket”);
    putenv(“ILAB_AWS_S3_ACCESS_KEY=56NMA…KIAGUBA”);
    putenv(“ILAB_AWS_S3_ACCESS_SECRET=pW5nI1s…jsoMwFq”);
    putenv(“ILAB_AWS_S3_REGION=eu-central-1”);

    And leave the fields empty in the storage settings page

    Thread Starter mvaneijgen

    (@mvaneijgen)

    Thanks

    Could you help me? Tried everything. I have tried to put the settings in my wp-config.php or functions.php, but the plugin doesn’t seem to recognise them.

    putenv("ILAB_MEDIA_S3_ENABLED=true");
    putenv("ILAB_CLOUD_STORAGE_PROVIDER=other-s3");
    putenv("ILAB_AWS_S3_ACCESS_KEY=2R...E1WC");
    putenv("ILAB_AWS_S3_SECRET_KEY=20k...Lur");
    putenv("ILAB_AWS_S3_BUCKET=my-bucket");
    putenv("ILAB_AWS_S3_ENDPOINT=https://my-endpoint");
    putenv("ILAB_AWS_S3_BUCKET_PREFIX=@{site-name}/");

    A notice keeps popping up:

    To start using Cloud Storage, you will need to supply your AWS credentials..

    When I use the settings directly in the interface it works like a charm.

    • This reply was modified 6 years, 3 months ago by smgdkngt.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Is it possible to set ILAB_AWS_S3_ACCESS_KEY via wp-config.php’ is closed to new replies.