Skip to content

Commit cf6d034

Browse files
metamejoepio
authored andcommitted
documentation
1 parent 3254fe8 commit cf6d034

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ https://user-images.githubusercontent.com/2183313/139728539-d69b899f-6f9b-44cb-a
5151

5252
Check out the [documentation](http://docs.atomicdata.dev/atomicserver/intro.html) for installation instructions, API docs, and more.
5353

54+
### Configuring S3 for File Storage
5455
## Contribute
5556

5657
Issues and PRs are welcome!

docs/src/atomicserver/installation.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,20 @@ ATOMIC_HTTPS=false
106106
ATOMIC_SERVER_URL=https://example.com
107107
```
108108

109+
### Configuring S3 for File Storage
110+
You can configure atomic-server to use S3 (and compatible services) for file storage via environment variables or command line arguments when starting atomic-server.
111+
112+
Credentials can either be found in the standard location for AWS credentials on your OS (e.g. `~/.aws/credentials` on UNIX systems) or by using the environment variables `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY`.
113+
114+
Available configuration values:
115+
116+
- bucket: `--s3-bucket="my-bucket-name"` or env var `ATOMIC_S3_BUCKET` (required)
117+
- region: `--s3-region="us-east-2"` or env var `ATOMIC_S3_REGION`
118+
- endpoint: `--s3-endpoint="https://s3.us-east-2.amazonaws.com"` or env var `ATOMIC_S3_ENDPOINT`
119+
0 path: `--s3-path="atomic_uploads"` or env var `ATOMIC_S3_PATH`
120+
121+
For example, the above configuration would uploads files to `s3://my-bucket-name/atomic_uploads/` in the `us-east-2` region.
122+
109123
## Using `systemd` to run Atomic-Server as a service
110124

111125
In Linux operating systems, you can use `systemd` to manage running processes.

0 commit comments

Comments
 (0)