Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Update README.md #34

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 31 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,30 @@ podman run --rm -p 8080:8080 y4m4/s3www:latest \
-bucket "mysite" \
-address "0.0.0.0:8080"

s3www: Started listening on http://0.0.0.0:8080
```
or set with this environment vars:
- S3WWW_ENDPOINT
- S3WWW_BUCKET
- S3WWW_BUCKET_PATH
- S3WWW_ACCESS_KEY
- S3WWW_SECRET_KEY
- S3WWW_ADDRESS
- S3WWW_LETS_ENCRYPT
- S3WWW_SSL_CERT
- S3WWW_SSL_KEY
- S3WWW_ACCESS_KEY_FILE
- S3WWW_SECRET_KEY_FILE
- S3WWW_SPA_FILE
- S3WWW_ALLOWED_CORS_ORIGINS


```
podman run --rm -p 8080:8080 -e S3WWW_BUCKET="mySite" -e S3WWW_ENDPOINT="https://s3.amazonaws.com" y4m4/s3www:latest \
-accessKey "accessKey" \
-secretKey "secretKey" \
-address "0.0.0.0:8080"

s3www: Started listening on http://0.0.0.0:8080
```

Expand All @@ -63,18 +87,18 @@ s3www requires access to view and list all files in the bucket.

```
{
"Version": "2012-10-17",
"Version": "2012-10-17
"Statement": [
{
"Sid": "",
"Effect": "Allow",
"Action": "s3:GetObject",
"Sid": "
"Effect": "Allow
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a JSON document, how does it work if you remove , ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, issued with my sed command, I update my commit

"Action": "s3:GetObject
"Resource": "arn:aws:s3:::<Bucket Name>/*"
},
{
"Sid": "",
"Effect": "Allow",
"Action": "s3:ListBucket",
"Sid": "
"Effect": "Allow
"Action": "s3:ListBucket
"Resource": "arn:aws:s3:::<Bucket Name>"
}
]
Expand Down