![Namecheap Takes Down Polyfill.io Service Following Supply Chain Attack](https://cdn.sanity.io/images/cgdhsj6q/production/6af25114feaaac7179b18127c83327568ff592d1-1024x1024.webp?w=800&fit=max&auto=format)
Security News
Namecheap Takes Down Polyfill.io Service Following Supply Chain Attack
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
@growthbook/proxy
Advanced tools
Readme
GrowthBook is a modular Feature Flagging and Experimentation platform.
The GrowthBook Proxy server sits between your application and GrowthBook. It turbocharges your GrowthBook implementation by providing speed, scalability, security, and real-time feature rollouts.
Install and run with Docker
docker pull growthbook/proxy:latest
docker run -d -p 3300:3300 \
-e "GROWTHBOOK_API_HOST=https://growthbook-api.example.com" \
-e "SECRET_API_KEY=key_abc123" \
--name gbproxy growthbook/proxy
Then, simply point your GrowthBook SDKs to the GrowthBook Proxy instead of the GrowthBook API.
You will also need to ensure that your self-hosted GrowthBook instance is configured to use the proxy server. This includes setting environment variables:
PROXY_ENABLED=1
PROXY_HOST_PUBLIC=https://proxy.example.com
## Optional; you may also use the GrowthBook UI to set this:
SECRET_API_KEY=something_secret
See GrowthBook's Proxy documentation for more information.
The GrowthBook Proxy supports a number of configuration options available via environment variables:
GROWTHBOOK_API_HOST
- Set this to the host and port of your GrowthBook API instanceSECRET_API_KEY
- Create a secret API key in GrowthBook by going to Settings -> API KeysNODE_ENV
- Set to "production" to hide debug and informational log messagesCACHE_ENGINE
- One of - memory
, redis
, or mongo
CACHE_CONNECTION_URL
- The URL of your redis or mongo cluster (if using)CACHE_STALE_TTL
- Number of seconds until a cache entry is considered staleCACHE_EXPIRES_TTL
- Number of seconds until a cache entry is expiredYou can also configure the GrowthBook Proxy to handle SSL termination. It supports HTTP/2 by default, which is required for high performance streaming.
USE_HTTP2
- Set to "true" or "1" to enableHTTPS_CERT
- The SSL certificateHTTPS_KEY
- The SSL keyFAQs
GrowthBook proxy server for caching, realtime updates, telemetry, etc
The npm package @growthbook/proxy receives a total of 4 weekly downloads. As such, @growthbook/proxy popularity was classified as not popular.
We found that @growthbook/proxy demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.
Security News
A JavaScript library maintainer is under fire after merging a controversial PR to support legacy versions of Node.js.