From bc019a2a9bb884020ff8195738f289527d58269d Mon Sep 17 00:00:00 2001 From: Marcin Chrzanowski Date: Sat, 24 Aug 2019 22:29:35 -0700 Subject: Use secret from environment --- curling.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curling.rb b/curling.rb index a295738..1367b02 100644 --- a/curling.rb +++ b/curling.rb @@ -4,7 +4,7 @@ require 'sinatra/cookies' require './hex_engine' def secret - 'tajny_token_hehe' + ENV['HEX_SECRET'] || 'tajny_token_hehe' end get '/:command' do |command| -- cgit v1.2.3