{"id":21428081,"url":"https://github.com/redhat-developer-demos/knative-proxy","last_synced_at":"2025-07-14T10:31:40.873Z","repository":{"id":91531476,"uuid":"170356975","full_name":"redhat-developer-demos/knative-proxy","owner":"redhat-developer-demos","description":"A proxy that lets XHRs access services in Knative. ","archived":false,"fork":false,"pushed_at":"2019-02-21T17:29:40.000Z","size":1697,"stargazers_count":3,"open_issues_count":0,"forks_count":5,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-08T06:51:10.489Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/redhat-developer-demos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-12T17:03:24.000Z","updated_at":"2021-12-14T15:08:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"07cd31c4-e83f-4911-842b-e22cbecb2547","html_url":"https://github.com/redhat-developer-demos/knative-proxy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/redhat-developer-demos/knative-proxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-developer-demos%2Fknative-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-developer-demos%2Fknative-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-developer-demos%2Fknative-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-developer-demos%2Fknative-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/redhat-developer-demos","download_url":"https://codeload.github.com/redhat-developer-demos/knative-proxy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-developer-demos%2Fknative-proxy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265280659,"owners_count":23739852,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-22T22:10:16.352Z","updated_at":"2025-07-14T10:31:40.867Z","avatar_url":"https://github.com/redhat-developer-demos.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# knative-proxy\n\nA 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.\n\nThis repo is part of an interactive Knative and serverless tutorial, the [Compile Driver](https://developers.redhat.com/coderland/serverless/), a ride at an imaginary theme park called Coderland.\n\n## Environment variables\n\nThere are three environment variables you can set when you run\nnpm start:\n\n1. `PORT` - the port number for the service. Default is `8888`.\n1. `PROXY_URL` - The URL for the Knative cluster. Default is\n`http://192.168.99.100:31380/overlayImage`.\n1. `PROXY_HOST` - The value for the HOST header. Default is\n`overlayimage.knativetutorial.example.com.nip.io`.\n\n## IMPORTANT LINKS\n\n:notebook: [Knative Tutorial Docs](https://redhat-developer-demos.github.io/knative-tutorial/knative-tutorial/dev/index.html)\n\n:gift: [Knative Tutorial repo](https://bit.ly/knative-tutorial)\n\n### Part 1: Introduction to Serverless with Knative\n\n:page_facing_up: [ARTICLE: Part 1: Introduction to Serverless with Knative](https://developers.redhat.com/coderland/serverless/serverless-knative-intro/)\n\n:clapper: [VIDEO: Part 1: Introduction to Serverless with Knative](https://youtu.be/R8PGrhfVWTc)\n\n:gift: [REPO: Image overlay](https://github.com/redhat-developer-demos/image-overlay)\n\n### Part 2: Building a Serverless Service\n\n:page_facing_up:[ARTICLE: Part 2: Building a Serverless Service](https://developers.redhat.com/coderland/serverless/building-a-serverless-service/)\n\n:clapper: [VIDEO: Part 2: Building a Serverless Service](https://youtu.be/M_Xse7vjkvE)\n\n:gift: [REPO: Photo store](https://github.com/redhat-developer-demos/coderland-photo-store)\n\n### Part 3: Deploying a Serverless Service to Knative\n\n:page_facing_up:[ARTICLE: Part 3: Deploying a Serverless Service to Knative](https://developers.redhat.com/coderland/serverless/deploying-serverless-knative/)\n\n:clapper: [VIDEO: Part 3: Deploying a Serverless Service to Knative](https://youtu.be/AR4fqwFLn9I)\n\n:gift: [REPO: Knative proxy](https://github.com/redhat-developer-demos/knative-proxy)\n\n***\n\nCoderland :roller_coaster::rocket::ferris_wheel: is a place for learning. Developer Training and Red Hat Software: [Red Hat Developer](https://developers.redhat.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredhat-developer-demos%2Fknative-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredhat-developer-demos%2Fknative-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredhat-developer-demos%2Fknative-proxy/lists"}