Templarbit

Templarbit Resources

Welcome to the Templarbit developer resources. You'll find comprehensive guides and documentation to help you start securing your applications and websites with Templarbit as quickly as possible. Let's jump right in!

Get Started

Install as Reverse Proxy

You can download and install the latest Templarbit Agent version as described below. Previous versions can be found in the Changelog.

Installation

curl -O https://dl.templarbit.com/templarbit-agent.v.linux-amd64
mv templarbit-agent.v.linux-amd64 /usr/bin/templarbit-agent
chmod +x /usr/bin/templarbit-agent

Usage

This is an example that starts the Templarbit Agent with minimal configuration. Ingress traffic is expected on port 80 and the application we want to protect listens on port 9000.

templarbit-agent \
  --property-id xxx \
  --secret-key xxx \
  --proxy-listen 0.0.0.0:80 \
  --proxy-upstream http://localhost:9000

You will need to replace xxx for the Property ID and Secret Key with the actual values from app.templarbit.com.

Start upstream server via Templarbit

You can have the Templarbit Agent start your application:

templarbit-agent \
  --property-id xxx \
  --secret-key xxx \
  --proxy-listen 0.0.0.0:80 \
  --proxy-upstream http://localhost:9000 \
  --exec 'bundle exec rails server -p $PORT'

Updating

The Templarbit Agent will update itself. To disable auto updates start the Templarbit Agent with --disable-auto-updates.