Skip to content

A proxy that lets XHRs access services in Knative.

Notifications You must be signed in to change notification settings

joeschram/knative-proxy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

knative-proxy

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.

Environment variables

There are three environment variables you can set when you run npm start:

  1. PORT - the port number for the service. Default is 8888.
  2. PROXY_URL - The URL for the Knative cluster. Default is http://192.168.99.100:31380/overlayImage.
  3. PROXY_HOST - The value for the HOST header. Default is overlayimage.knativetutorial.example.com.nip.io.

About

A proxy that lets XHRs access services in Knative.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%