Socket
Socket
Sign inDemoInstall

@qpoint/proxy

Package Overview
Dependencies
1
Maintainers
3
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @qpoint/proxy

A Qpoint adapter for proxying requests from the edge


Version published
Weekly downloads
2
decreased by-88.89%
Maintainers
3
Install size
57.3 kB
Created
Weekly downloads
 

Readme

Source

qpoint-proxy

A Qpoint adapter for proxying requests from the edge

Usage

import Endpoint from "@qpoint/endpoint";
import proxy from "@qpoint/proxy";

export default new Endpoint()
  .use(proxy({ appUrl: "https://qpoint.io" }))

Installation

npm add @qpoint/proxy

Config

appUrl sets the upstream app url to forward requests

redirect will indicate to redirect the request instead of proxy by default

urlStrategy determines how to construct the proxy request url (see below)

Url Strategy

The URL Strategy determines how to construct the proxy request URL. The following modes are supported:

mask takes the incoming url and replaces only the origin domain from the appUrl. This is the default settings and the most likely strategy you'll want to use when proxying.

mirror uses the appUrl directly and doesn't do any modifications. This is mostly beneficial if using this adapter as a redirect, and you want all requests to be redirected to the same location. It can also be used during proxy but beware that all requests will end up at the same upstream url regardless of the incoming path which may be confusing behavior.

FAQs

Last updated on 05 Jan 2024

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc