1.0.0 • Published 5 years ago

ui5-middleware-hpm-proxy v1.0.0

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
5 years ago

UI5 http-proxy-middleware based proxy

This is a middleware for ui5-server, enabling advanced proxy support.

Behind the scenes it leverage http-proxy-middleware and will use the same configuration format.

Install

npm install ui5-middleware-hpm-proxy --save-dev
yarn add ui5-middleware-hpm-proxy --dev

As the devDependencies are not recognized by the UI5 tooling, they need to be listed in the ui5 > dependencies array. In addition, once using the ui5 > dependencies array you need to list all UI5 tooling relevant dependencies.

  1. configure it in $yourapp/ui5.yaml:
server:
  customMiddleware:
  - name: ui5-middleware-hpm-proxy
    afterMiddleware: compression
    mountPath: /
    configuration:
        logProvider: "ui5"
        logLevel: "info"

Configuration options (in $yourapp/ui5.yaml)