Skip to content

Commit

Permalink
Add KEYWORD env var
Browse files Browse the repository at this point in the history
This lets you change the default `node-red` keyword to filter new
packages on
  • Loading branch information
hardillb committed Jan 2, 2021
1 parent 6b5fbfa commit 4c2da5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ The container takes the following Environment variables:
- PORT - Which port to listen on (defaults to `3000`)
- HOST - Which local IP Address to bind to (defaults to `0.0.0.0`)
- REGISTRY - A host and optional port number to connect to the NPM registry (defaults to `registry:4873`)
- KEYWORD - The npm keyword to filter on (defaults to `node-red`)

It presents 2 HTTP endpoints

Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const superagent = require('superagent')
const port = (process.env.PORT || 80)
const listenHost = (process.env.HOST || '0.0.0.0')
const registryHost = (process.env.REGISTRY || 'registry:4873')
const keyword = "node-red"
const keyword = (process.env.KEYWORD || "node-red")

const url = "http:https://" + registryHost + "/-/all"

Expand Down

0 comments on commit 4c2da5a

Please sign in to comment.