I'm deploying my Django app to Railway.app and am hosting media on GCS (I like the free tier). I've created the service account and received the .json of the credentials. On my local system for dev, I have the .json file in the directory and refer to it like this:
GS_CREDENTIALS = service_account.Credentials.from_service_account_file(".gcs_credentials.json")
No problems and files upload great. I'm not passing the credentials file through Github (for safety reasons) but now I'm stuck.
Is there a way to save this JSON file as an environment variable in Railway.app?
For all of my other variables, I'm using django-environ and everything is working great. I just can't find anything online about passing credentials in JSON form to a deployment on Railway.
Thank you in advance.