NGINX proxy configuration example
Seamless integration with BytesFlows endpoints using standard proxy auth.
# nginx.conf
http {
upstream bytesflows_proxy {
server p1.bytesflows.com:8001;
}
server {
listen 80;
server_name api-gateway.local;
location /scrape/ {
proxy_pass http://bytesflows_proxy;
proxy_set_header Proxy-Authorization "Basic YOUR_BASE64_CREDENTIALS";
proxy_set_header Host $host;
}
}
}Replace YOUR_USER and YOUR_PASS with your BytesFlows sub-user credentials from the dashboard.
How NGINX routes through BytesFlows
Standard upstream proxy forwarding routes outbound requests through residential exit IPs.
NGINX Request
Your application or NGINX upstream block sends an outbound request to the BytesFlows proxy host with credentials.
Authentication & Geo
BytesFlows gateway verifies credentials and applies geo-targeting parameters (-cc-US, -cc-GB, etc.).
Residential Exit Node
The request is forwarded through an authentic ISP-assigned residential IP from the selected region.
Target Destination
The target API or website receives the request from a residential exit IP according to your routing rules.
Supports both rotating mode (new IP per request) and sticky session mode via -session-ID username parameters.