env

From uWSGI does not load environment variables and Set environment variables from file

To read environment variables from a file in your uWSGI ini file:

for-readline = ../mysite/.private
  env = %(_)
endfor =

For a file in this format with the name .private:

AWS_S3_ACCESS_KEY_ID="ABC"
AWS_S3_SECRET_ACCESS_KEY="123"

Note

I am not sure whether the double quotes are OK there or not.

To read the same variables into a bash script:

export $(cat .private | xargs)