H5P-Nodejs-Library
  • README
  • Basic usage
    • Architecture
    • Integrating the core library
    • H5P Ajax Endpoints
    • Constructing H5PEditor
    • REST Example
  • Advanced usage
    • Authorization
    • User content state
    • Multiple user states per object
    • Impersonating users
    • Basic completion tracking
    • Localization
    • Cluster
    • Addons
    • Customization
    • Performance optimizations
    • Privacy
    • Forward proxy support
    • Security
  • NPM packages
    • h5p-mongos3
      • Mongo/S3 Content Storage
      • S3 Temporary File Storage
      • Mongo Library Storage
      • Mongo/S3 Library Storage
    • h5p-webcomponents
    • h5p-react
    • h5p-redis-lock
    • h5p-svg-sanitizer
    • h5p-clamav-scanner
  • Development
    • Getting started
    • Testing & code quality
    • Core updates
    • Project Status
Powered by GitBook
On this page

Was this helpful?

  1. Advanced usage

Forward proxy support

@lumieducation/h5p-server has to make outgoing HTTPS requests to contact the H5P Hub. If your network requires the use of a forward proxy to reach the Internet, you must configure @lumieducation/h5p-server to use it for the HTTPS requests.

There are two ways of enabling the proxy:

  1. Set the proxy property in IH5PConfig like this:

    {
        "proxy": {
            "host": "10.1.2.3",
            "port": 8080,
            "protocol": "https" // can also be left out or set to "http" if your proxy can't be accessed with https
        }
    }
  2. Set the HTTPS_PROXY environment variable like this:

    HTTPS_PROXY=http://10.1.2.3:8080 or HTTPS_PROXY=https://10.1.2.3:8080

    (depending on whether your proxy can be accessed with https).

PreviousPrivacyNextSecurity

Last updated 3 years ago

Was this helpful?