Skip to content

3.2.1

Compare
Choose a tag to compare
@Vrtak-CZ Vrtak-CZ released this 13 Oct 23:12
· 42 commits to main since this release
3.2.1

Feat

Add possibilty to add proxy path. For example when you need access to Backend API on same domain as FE but on path

provider "aws" {
  alias  = "us_east_1"
  region = "us-east-1"
}

module "static-site" {
  source  = "cookielab/static-site/aws"
  version = "~> 2.1"

  providers = {
    aws.us_east_1 = aws.us_east_1
  }

  domains        = ["www.example.com"]
  domain_zone_id = aws_route53_zone.example_com.zone_id
  s3_bucket_name = "example_com_web"

  proxy_paths = [
    {
       origin_domain = "backend.example.com"
       path_prefix = "/api"
    }
  ]
}