Socket
Book a DemoInstallSign in
Socket

@borealisgroup/proxy-service

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@borealisgroup/proxy-service

Generic and templated proxy configurations for creating REST API's

latest
Source
npmnpm
Version
1.0.14
Version published
Maintainers
2
Created
Source

Templated Proxy Services

This package is a multi purpose proxy service that will let you easily customize what routes, headers and parameters are processed.

Valid requests gets processed according to the templated definitions and return responses, with just a simple yaml declaration file.

Getting started

...

Example Configuration

There is a set of examples included, for you to see how to use the YAML route definitions.

Consider the following simple example, that will proxy requests from http://<your-host>/proxied to the endpoint http://localhost:$PORT.

name: proxy-request
destination: http://localhost:$PORT
defaults:
  methods: [HEAD, GET]
routes:
  '/proxied': '~/api'

Parsing YML files

YML files parsed according to YAML npm package's parse method

FAQs

Package last updated on 03 Mar 2021

Did you know?

Socket

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