From 2b4982ab924f07fe29d1b4f4e191e4f8d9ea4e9e Mon Sep 17 00:00:00 2001 From: David AUFFRAY <31964077+Davidffry@users.noreply.github.com> Date: Thu, 14 Dec 2023 10:00:09 +0100 Subject: [PATCH 1/3] Update README.md --- README.md | 38 +++++++++++++++++++++++++++++++------- 1 file changed, 31 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 1b4377d..07fd004 100644 --- a/README.md +++ b/README.md @@ -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 ``` @@ -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 + "Action": "s3:GetObject "Resource": "arn:aws:s3:::/*" }, { - "Sid": "", - "Effect": "Allow", - "Action": "s3:ListBucket", + "Sid": " + "Effect": "Allow + "Action": "s3:ListBucket "Resource": "arn:aws:s3:::" } ] From faa0f0a231a21b6e813c3dbcfa7fd85c9ab7578a Mon Sep 17 00:00:00 2001 From: David AUFFRAY <31964077+Davidffry@users.noreply.github.com> Date: Fri, 15 Dec 2023 14:12:15 +0100 Subject: [PATCH 2/3] Update README.md fix typo due to the sed change --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 07fd004..ce3c652 100644 --- a/README.md +++ b/README.md @@ -90,15 +90,15 @@ s3www requires access to view and list all files in the bucket. "Version": "2012-10-17 "Statement": [ { - "Sid": " - "Effect": "Allow - "Action": "s3:GetObject + "Sid": "", + "Effect": "Allow", + "Action": "s3:GetObject", "Resource": "arn:aws:s3:::/*" }, { - "Sid": " - "Effect": "Allow - "Action": "s3:ListBucket + "Sid": "", + "Effect": "Allow", + "Action": "s3:ListBucket", "Resource": "arn:aws:s3:::" } ] From 93b9d158514be359624872ea5a8ff76c96718e79 Mon Sep 17 00:00:00 2001 From: David AUFFRAY <31964077+Davidffry@users.noreply.github.com> Date: Fri, 15 Dec 2023 14:14:06 +0100 Subject: [PATCH 3/3] Update README.md Fix typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ce3c652..e71e788 100644 --- a/README.md +++ b/README.md @@ -87,7 +87,7 @@ s3www requires access to view and list all files in the bucket. ``` { - "Version": "2012-10-17 + "Version": "2012-10-17", "Statement": [ { "Sid": "",