Skip to content

Commit ac99879

Browse files
author
Genevieve Patterson
committed
added config example for using aws s3
1 parent 6f3b7ee commit ac99879

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

config_example.py

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@
77
from dotenv import load_dotenv
88
load_dotenv()
99

10-
AWS_ACCESS_KEY = os.environ.get('AWS_ACCESS_KEY_ID')
11-
AWS_SECRET_ACCESS_KEY = os.environ.get('AWS_SECRET_ACCESS_KEY')
10+
"""
11+
12+
Server resource paths and hosting options
13+
14+
"""
1215

1316
approot = os.getenv('APPROOT')
1417
if not approot:
@@ -37,6 +40,17 @@
3740
".png" : "image/png"
3841
}
3942

43+
"""
44+
45+
AWS Options
46+
47+
"""
48+
# If this is set to true, user running the app must have AWS CLI config set up
49+
# for an IAM user that has permission to write to the s3 bucket named
50+
# APPNAME-blobs
51+
# All uploaded images and videos will be saved to that bucket
52+
USE_AWS_S3 = False
53+
4054

4155
"""
4256

0 commit comments

Comments
 (0)