I am trying to setup some traffic to proxy through to my backend API in AWS.
I have setup the following proxy rule:
https://lifedatabase.netlify.app/api/echo → http://lifedatabase-822610598.us-west-2.elb.amazonaws.com/echo
Using the following redirect configuration:
[[redirects]] from = "/api/*" to = "http://lifedatabase-822610598.us-west-2.elb.amazonaws.com/:splat" status = 200 force = true # COMMENT: ensure that we always redirect signed = "API_SIGNATURE_TOKEN_PLACEHOLDER"
My backend server gets many x-nf-* headers but doesn’t seem to get the x-nf-sign header as documented here: Rewrites and proxies | Netlify Docs
Visiting this url: https://lifedatabase.netlify.app/api/echo will return the headers received.
I understand I still need to replace the token placeholder but I think this should work as is.