Giter Site home page Giter Site logo

goxy's Introduction

jwter

Pronounced ʤɒtə | jot-ter. A reverse proxy that adds a JWT header to an HTTP request.

Setup

For dev:

  1. You need the Go compiler set up
  2. Clone this repo into go/src/ (location depends on how you set Go up)
  3. Run $> make certs to generate signing and public certificates
  4. Run $> make conf and answer the prompts (to skip interactive mode, set each var in terminal, e.g. $> proxy_port=1337 ... make conf)
    • Alternatively, create a .env file with the following vars in jwter/ directory:
    PROXY_PORT=<port to run jwter on>
    APP_URL=<url:port to proxy requests to>
    SIGNING_CERT=<absolute path to cert used for signing jwt>
    PUBLIC_CERT=<absolute path to cert used for decoding jwt>
    USER_ID=<user id>
    
  5. To run in Docker, run $> make docker-up

Just for use:

  1. Download jwter executable or clone repo - whatever floats your boat
  2. Set up .env as seen above in same directory as executable
  3. In terminal run /path/to/jwter
  4. To run in Docker, run $> make docker-up

TODO

  • refactor / modularize
  • improve logging output
  • get some sleep
  • make this a CLI?

goxy's People

Contributors

rwengelbrecht avatar

Watchers

 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.