Socket
Socket
Sign inDemoInstall

@dnj/iso.jeyserver.com

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @dnj/iso.jeyserver.com

Static website to generate directory listing for S3 buckets.


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
765 kB
Created
Weekly downloads
 

Readme

Source

s3-autoindex

Static website to generate directory listing for S3 buckets.

Example directory listing generated by s3-autoindex

Usage

Clone the repository and edit config.js, configuring it with your bucket.

  • Set window.S3_BUCKET_URL to bucket's REST endpoint.
  • Alternatively, set window.SECRET_BUCKET_URL to your AES-encrypted REST endpoint. Doing so will obfuscate your public S3 url and password protect your directory listing. An encrypt function is available in js/encryption.js for generating encrypted URLs.

Note: The S3 REST endpoint used differs from S3's website endpoint. For more details, see: Website Rest EndpointDiff.

S3 Bucket Permissions

You must setup the S3 website bucket to allow public read access.

  • Grant Everyone the List and View permissions:

  • Assign the following Bucket Policy:

{
    "Version": "2008-10-17",
    "Statement": [
        {
            "Sid": "AllowPublicRead",
            "Effect": "Allow",
            "Principal": {
                "AWS": "*"
            },
            "Action": "s3:GetObject",
            "Resource": "arn:aws:s3:::{your-bucket-name}/*"
        }
    ]
}
  • Assign the following CORS Configuration:
<CORSConfiguration>
 <CORSRule>
   <AllowedOrigin>*</AllowedOrigin>
   <AllowedMethod>GET</AllowedMethod>
   <AllowedHeader>*</AllowedHeader>
 </CORSRule>
</CORSConfiguration>

FAQs

Last updated on 19 Sep 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc