File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,18 @@ alembic upgrade head
31
31
32
32
### S3 environment variables
33
33
34
- <!-- TODO: Document -->
34
+ To enable files to be uploaded to S3-compatible storage, the following environment variables must be set:
35
+
36
+ - ` ENABLE_UPLOAD ` : 1 to enable, 0 to disable
37
+ - ` BUCKET_REGION ` :
38
+ - ` BUCKET_NAME `
39
+ - ` BUCKET_ACCESS_KEY_ID `
40
+ - ` BUCKET_ACCESS_KEY_SECRET `
41
+
42
+ To make this easier, the project uses [ ` python-dotenv ` ] ( https://github.com/theskumar/python-dotenv ) to load environment variables from a config file.
43
+ For local development, create a file called ` .env.local ` , which will be used by default.
44
+ You can change which file is loaded setting the environment variable ` APP_ENV ` .
45
+ For example the tests set ` APP_ENV=test ` , which loads variables from ` .env.test ` .
35
46
36
47
### Run app
37
48
You can’t perform that action at this time.
0 commit comments