Skip to content

How to setting? #19

Open
Open

Description

@lifeisegg2k

how to setting to real s3 env?

Activity

  1. arpitparmar5739 commented on Aug 25, 2021

    @arpitparmar5739

    I am also trying to figure out the configs. It would be great if there is some information in the README regarding the config setup.

  2. blowfishpro commented on Aug 26, 2021

    @blowfishpro
    Owner

    So you're the first people besides myself who I'm aware of having tried to deploy this. There are a couple of half-baked deployment schemes at the moment but I'm interested in hearing what you're trying to accomplish with this and maybe improving things based on that.

  3. blowfishpro commented on Aug 26, 2021

    @blowfishpro
    Owner

    The two schemes I (probably) have working are these:

    1. Put it in the same bucket you're trying to browse. It'll detect that the current location looks like s3 and show you the contents of that bucket.
    2. When index.html is generated, add a block like this to it:
    <script>
    window.s3Config = {
      bucketName = 'my-bucket', // required
      region = 'us-east-1', // optional, if set then use the regional endpoint for s3
      forcePathStyle = false, // optional, default false, AWS discourages this
      basePath = '/example', // optional, default '/', path at which the browser is served, everything after this is the s3 path
    };
    </script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions