Skip to content

Commit c118905

Browse files
metamejoepio
authored andcommitted
documentation
1 parent d090cd2 commit c118905

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
@@ -105,6 +105,20 @@ ATOMIC_HTTPS=false
105105
ATOMIC_SERVER_URL=https://example.com
106106
```
107107

108+
### Configuring S3 for File Storage
109+
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.
110+
111+
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`.
112+
113+
Available configuration values:
114+
115+
- bucket: `--s3-bucket="my-bucket-name"` or env var `ATOMIC_S3_BUCKET` (required)
116+
- region: `--s3-region="us-east-2"` or env var `ATOMIC_S3_REGION`
117+
- endpoint: `--s3-endpoint="https://s3.us-east-2.amazonaws.com"` or env var `ATOMIC_S3_ENDPOINT`
118+
0 path: `--s3-path="atomic_uploads"` or env var `ATOMIC_S3_PATH`
119+
120+
For example, the above configuration would uploads files to `s3://my-bucket-name/atomic_uploads/` in the `us-east-2` region.
121+
108122
## Using `systemd` to run Atomic-Server as a service
109123

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

0 commit comments

Comments
 (0)