Using secure App secrets

PHOTO EMBED

Fri Mar 04 2022 17:36:07 GMT+0000 (Coordinated Universal Time)

Saved by @mboljar

// read all App secrets from the JSON file, get the location via ENV var
$secrets = json_decode(file_get_contents($_SERVER["APP_SECRETS"]), true);

// use a specific secret
$meaning_of_life = $secrets['CUSTOM']['MEANING_OF_LIFE'];
content_copyCOPY

https://help.fortrabbit.com/secrets