greglearns / portier-broker

Portier Broker reference implementation, written in Rust

Home Page:http://portier.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Portier Broker

This is the Portier Broker reference implementation.

How to run your own broker

HerokuDeploy

Portier is specified such that everyone can run their own broker instance. You can point your Relying Parties at your own broker, so that you do not have to depend on the broker run by the Portier project.

Binaries for the broker can be found on the GitHub releases page. Docker images are also available on Docker Hub. Alternatively, you can build the broker yourself.

To run your own broker, you'll need access to an SMTP server for sending email. For local testing, MailHog can provide this for you.

The broker can be configured using a configuration file or through environment variables. Both are documented in the example configuration file.

Once you've prepared the configuration, simply run the broker executable:

# From binaries:
./portier-broker[.exe] ./config.toml

# Using Docker:
docker run -v /srv/portier-broker:/data:ro portier/broker /data/config.toml

Some additional notes:

  • If using environment variables only, don't specify a configuration file on the command line.

  • Systemd units are also included with the Linux binaries.

  • The broker only talks plain HTTP, and not HTTPS. Using HTTPS is strongly recommended, but you'll need to add a reverse proxy in front of the broker to do this. (Apache or Nginx can do this for you.)

About

Portier Broker reference implementation, written in Rust

http://portier.github.io/

License:Apache License 2.0


Languages

Language:Rust 92.7%Language:JavaScript 4.6%Language:HTML 1.7%Language:Dockerfile 0.5%Language:CSS 0.4%Language:Shell 0.1%