Coder Social home page Coder Social logo

tzbo / configurable-http-proxy-redis-backend2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from globocom/configurable-http-proxy-redis-backend

0.0 0.0 0.0 99 KB

Redis Backend(support redis cluster) for Jupyter's Configurable Proxy

License: BSD 3-Clause "New" or "Revised" License

JavaScript 99.78% Makefile 0.22%

configurable-http-proxy-redis-backend2's Introduction

Redis Backend(support redis cluster) for Jupyter's Configurable Proxy

Build Status npm version

configurable-http-proxy-redis-backend is an extension for configurable-http-proxy. It allows routes to be saved on redis.

Install

configurable-http-proxy-redis-backend requires Node.js ≥ v6.0.0 and configurable-http-proxy ≥ v3.1.0.

To install configurable-http-proxy-redis-backend2:

npm install configurable-http-proxy configurable-http-proxy-redis-backend2

Usage

First of all, you must export CONFIGURABLE_PROXY_REDIS_URI environment variable. URI should follow the format specified in ioredis.

 export CONFIGURABLE_PROXY_REDIS_URI=redis://host.myredis:6379

After installing and exporting CONFIGURABLE_PROXY_REDIS_URI, you should be able to use --storage-backend configurable-http-proxy-redis-backend argument.

configurable-http-proxy \
    --ip 0.0.0.0 \
    --port 8043 \
    --api-ip 0.0.0.0 \
    --api-port 8044 \
    --default-target http://127.0.0.1:8081 \
    --error-target http://127.0.0.1:8081/hub/error \
    --log-level debug \
    --storage-backend configurable-http-proxy-redis-backend2

Redis URL and Sentinel URL

Currently, we are supporting the follow URL formats:

  • redis://host:port/[name]

  • redis://:auth@host:port/[name]

  • sentinel://host:port/master-name

  • sentinel://host1:port,host2:port/master-name

  • sentinel://:auth@host1:port,host2:port/master-name

  • cluster://auth@host1:port,host2:port

  • cluster://:auth@host1:port,host2:port

configurable-http-proxy-redis-backend2's People

Contributors

jonathansp avatar tzbo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.