A node.js proxy for invoking Knative services on behalf of XHRs. This code exists because Knative by default requires a certain value in the HOST header. That value by default is servicename.namespace.example.com. Unfortunately, XHRs aren't allowed to set the HOST header value, so they can't access Knative services.
This repo is part of an interactive Knative and serverless tutorial, the Compile Driver, a ride at an imaginary theme park called Coderland.
There are three environment variables you can set when you run npm start:
PORT- the port number for the service. Default is
PROXY_URL- The URL for the Knative cluster. Default is
PROXY_HOST- The value for the HOST header. Default is
Part 1: Introduction to Serverless with Knative
Part 2: Building a Serverless Service
Part 3: Deploying a Serverless Service to Knative