Reactive Interaction Gateway

Reactive Interaction Gateway

  • User Documentation
  • Source Documentation
  • GitHub

›RIG in Production

Getting Started

  • Intro
  • Tutorial
  • Examples
  • FAQ

Main Concepts

  • Architecture
  • Features
  • Event Format
  • Publishing Events
  • Receiving Events
  • Forwarding Requests
  • User Authorization
  • Distributed Tracing

Advanced Guides

  • API Gateway Management
  • API Gateway Synchronization
  • Avro
  • JWT Blacklisting
  • Azure Event Hubs

RIG in Production

  • Operator's Guide
  • API Documentation
  • Phoenix LiveDashboard
  • Prometheus Metrics
  • HTTPS
  • Scaling

Hacking the Source

  • Developer's Guide

HTTPS

HTTPS/TLS

In order to enable HTTPS, the HTTPS_CERTFILE and HTTPS_KEYFILE environment variables must be set. During development, this may be set to the self-signed certificate that comes with the repository:

$ export HTTPS_CERTFILE=cert/selfsigned.pem
$ export HTTPS_KEYFILE=cert/selfsigned_key.pem
$ mix phx.server

WARNING: only use the generated certificate for testing in a closed network environment, such as running a development RIG instance on localhost. For production, staging, or testing on the public internet, obtain a proper certificate, for example from Let’s Encrypt.

For production you should use proper HTTPS certificates instead (for that reason the Docker image comes without certificates).

  1. Create your own certificate
  2. Store it on your machine
  3. Run the docker image by mounting the files as shown here:
$ docker run \
  -v "$(pwd)"/cert/own-certificate.pem:/cert/own-certificate.pem \
  -e HTTPS_CERTFILE=/cert/own-certificate.pem \
  -v "$(pwd)"/cert/own-certificate_key.pem:/cert/own-certificate_key.pem \
  -e HTTPS_KEYFILE=/cert/own-certificate_key.pem \
  -p 4000:4000 -p 4010:4010 \
  -p 4001:4001 -p 4011:4011 \
  accenture/reactive-interaction-gateway

Refer to the RIG operator guide to learn more about available configuration options.

← Prometheus MetricsScaling →
  • HTTPS/TLS
Docs
IntroGetting Started
Community
User ShowcaseSlackStack Overflow@KevnBadr
More
Star RIG on GitHub
Copyright © 2021 Accenture