Skip to content

Simplify demo app CORS setup, use S3 website instead of Web server#47

Merged
whummer merged 2 commits intomasterfrom
s3-website
Feb 1, 2023
Merged

Simplify demo app CORS setup, use S3 website instead of Web server#47
whummer merged 2 commits intomasterfrom
s3-website

Conversation

@whummer
Copy link
Member

@whummer whummer commented Jan 25, 2023

This PR contains some simplifications to make the sample app easier to install and more self-contained:

  • use S3 website hosting for the Web UI instead of spinning up a separate Web server on 3000
  • given we're accessing the LS APIs from an S3 website (http://localhost:4566/archive-bucket/index.html), we can simplify the CORS setup - it is no longer required to set EXTRA_CORS_ALLOWED_ORIGINS=...
  • remove old/deprecated config variables like DOCKER_BRIDGE or START_WEB=1

Addresses #44

Depends on localstack/localstack#7554

Copy link
Contributor

@tinyg210 tinyg210 left a comment

Choose a reason for hiding this comment

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

works as expected 👍

@whummer whummer merged commit 6fb612c into master Feb 1, 2023
@whummer whummer deleted the s3-website branch February 1, 2023 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants