### Set up Simple Proxy for Development Source: https://github.com/tanguyantoine/simple-proxy/blob/main/README.md Instructions for cloning the Simple Proxy repository, installing dependencies, and starting the proxy from source for development purposes. ```bash # Clone the repository git clone https://github.com/tanguyantoine/simple-proxy.git cd simple-proxy # Install dependencies npm install # Start the proxy (using CLI flags) npm start -- --target https://api.example.com ``` -------------------------------- ### Install and Run Simple Proxy via NPM Source: https://github.com/tanguyantoine/simple-proxy/blob/main/README.md Instructions for installing the simple-proxy NPM package globally, running it with CLI flags, environment variables, or npx. ```bash # Install globally npm install -g @tanguyantoine/simple-proxy # Run with CLI flags simple-proxy --target https://api.example.com --port 3000 # Or use environment variables TARGET=https://api.example.com simple-proxy # Or use directly with npx npx @tanguyantoine/simple-proxy --target https://api.example.com ``` -------------------------------- ### Configure Simple Proxy using Environment Variables Source: https://github.com/tanguyantoine/simple-proxy/blob/main/README.md Examples demonstrating how to configure Simple Proxy using environment variables for basic usage and adding custom headers. ```bash # Basic usage with custom port PORT=8080 TARGET=https://api.example.com simple-proxy # Adding custom headers EXTRA_HEADERS='{"X-API-Key": "123456"}' TARGET=https://api.example.com simple-proxy ``` -------------------------------- ### Configure Simple Proxy using CLI Flags Source: https://github.com/tanguyantoine/simple-proxy/blob/main/README.md Examples demonstrating how to configure Simple Proxy using command-line interface flags for basic usage and adding custom headers. ```bash # Basic usage with custom port simple-proxy --target https://api.example.com --port 8080 # Adding custom headers simple-proxy --target https://api.example.com --headers '{"X-API-Key": "123456"}' ``` -------------------------------- ### Configure Simple Proxy Docker Container with CLI Flags Source: https://github.com/tanguyantoine/simple-proxy/blob/main/README.md Example demonstrating how to run a Simple Proxy Docker container and configure it using command-line interface flags for target URL and custom headers. ```bash docker run \ -p 3000:3000 \ tanguyantoine/simple-proxy \ --target https://api.example.com \ --headers '{"X-API-Key": "123456"}' ``` -------------------------------- ### Simple Proxy Configuration Options Source: https://github.com/tanguyantoine/simple-proxy/blob/main/README.md Details the available configuration options for Simple Proxy, including CLI flags, environment variables, descriptions, and default values. ```APIDOC Option: Target URL CLI Flag: --target Environment Var: TARGET Description: Target URL to proxy requests to Required: Yes Default: - Option: Port CLI Flag: --port Environment Var: PORT Description: Port number for the proxy server Required: No Default: 3000 Option: Extra Headers CLI Flag: --headers Environment Var: EXTRA_HEADERS Description: JSON string of additional headers Required: No Default: {} ``` -------------------------------- ### Pull and Run Simple Proxy Docker Image Source: https://github.com/tanguyantoine/simple-proxy/blob/main/README.md Commands to pull the simple-proxy Docker image from Docker Hub or GitHub Container Registry, and run it using environment variables or CLI flags. ```bash # Pull the image docker pull tanguyantoine/simple-proxy:latest # or from GitHub Container Registry docker pull ghcr.io/tanguyantoine/simple-proxy:latest # Run with environment variables docker run -e TARGET=https://api.example.com -p 3000:3000 tanguyantoine/simple-proxy # Or use CLI flags (requires entrypoint override) docker run -p 3000:3000 tanguyantoine/simple-proxy --target https://api.example.com ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.