Skip to content

andrewstucki/proxy-lambda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Proxy Lambda

A lightweight Gateway API + Lambda-based rewriting proxy and corresponding terraform module.

Configuring

Example config.json:

{
  "skipTLSVerification": false,
  "host": "http://localhost:3000",
  "rules": [{
    "pathMatch": ".*",
    "target": "https://www.somehosthere.org",
    "rewriteRequestBody": true,
    "keepRequestHeaders": ["User-Agent", "Content-Type", "Cookie"],
    "dropResponseHeaders": ["Strict-Transport-Security"]
  }]
}

Configuring the Terraform module

Example terraform.tf:

module "lambda" {
  source = "./module"

  domain      = "somehosthere.org"
  subdomain   = "proxy-test"
  app_name    = "proxy-lambda"
  source_path = "build/bin/app"
  zip_output  = "build/bin/app.zip"
}

Building and Deploying

make
terraform init
terraform plan -out planfile
terraform apply planfile
curl https://proxy-test.somehosthere.org
terraform destroy

About

Lightweight Configurable Lambda-based Rewriting Proxy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors