From e51245c2da0efefdc294e7a6d6e5f268b3f60722 Mon Sep 17 00:00:00 2001
From: Jiten Bhagat <jits@users.noreply.github.com>
Date: Tue, 7 Feb 2017 11:39:32 +0000
Subject: [PATCH] Support `ENCRYPTION_KEY` as an env var (#191)

* support `ENCRYPTION_KEY` as an env var
---
 doc.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc.go b/doc.go
index 7b31f84..4aa10e5 100644
--- a/doc.go
+++ b/doc.go
@@ -210,7 +210,7 @@ type Config struct {
 	// Store is a url for a store resource, used to hold the refresh tokens
 	StoreURL string `json:"store-url" yaml:"store-url" usage:"url for the storage subsystem, e.g redis://127.0.0.1:6379, file:///etc/tokens.file"`
 	// EncryptionKey is the encryption key used to encrypt the refresh token
-	EncryptionKey string `json:"encryption-key" yaml:"encryption-key" usage:"encryption key used to encryption the session state"`
+	EncryptionKey string `json:"encryption-key" yaml:"encryption-key" usage:"encryption key used to encryption the session state" env:"ENCRYPTION_KEY"`
 
 	// LogRequests indicates if we should log all the requests
 	LogRequests bool `json:"log-requests" yaml:"log-requests" usage:"enable http logging of the requests"`
-- 
GitLab