Pronounced ʤɒtə | jot-ter. A reverse proxy that adds a JWT header to an HTTP request.
- You need the Go compiler set up
- Clone this repo into go/src/ (location depends on how you set Go up)
- Run
$> make certs
to generate signing and public certificates - 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>
- To run in Docker, run
$> make docker-up
- Download jwter executable or clone repo - whatever floats your boat
- Set up .env as seen above in same directory as executable
- In terminal run /path/to/jwter
- To run in Docker, run
$> make docker-up
- refactor / modularize
- improve logging output
- get some sleep
- make this a CLI?