m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/curling.rb
diff options
context:
space:
mode:
authorMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2019-08-24 22:29:35 -0700
committerMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2019-08-24 22:29:35 -0700
commitbc019a2a9bb884020ff8195738f289527d58269d (patch)
tree40fbbdf5c20aa06834ebdcb77ad44ec5087e232d /curling.rb
parent056777e2745704b1e7a5fae390034a6c599bad6b (diff)
Use secret from environment
Diffstat (limited to 'curling.rb')
-rw-r--r--curling.rb2
1 files changed, 1 insertions, 1 deletions
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|