Simple application that allows you to display the content of your S3 to authorised users only.
- npm start
Don't forget to set environment variables:
NODE_ENV
toproduction
(or your bucket will be open)DOMAIN
to whatever domain you are onUSE_SSL
to1
unless you have a very good reason not to (credentials might leak there)ALLOWED_DOMAINS
to comma-separated list of domains you are accepting auth fromGOOGLE_CLIENT_ID
andGOOGLE_CLIENT_SECRET
to whatever you requested from Google via their Developer Console. When prompted, your origins are the root of your app (likehttps://protected-s3.herokuapp.com/
and Authorized Redirect Uri is the former with the/auth/google/return
suffix (i.e. https://protected-s3.herokuapp.com/auth/google/return))BUCKETS
,ACCESS_KEY
andSECRET_KEY
to the bucket you want to expose and Amazon Web Services S3 credentials.USE_REDIS_SESSION
to1
if you want to use Redis and have a persistent session (setREDIS_URL
to the appropriate value)APP_PORT
if testing on localhost to whatever port you wish the app to run (don't forget to include the port in the Authorized Redirect Uri when requesting Google app credentials)