Commit 3ad3d3e9 authored by marcheing's avatar marcheing Committed by Diego de Araújo Martinez Camarinha

Add zencoder api key configuration and settings

Signed-off-by: Diego de Araújo Martinez Camarinha's avatarDiego Araújo <diegoamc@protonmail.ch>
parent bc3edbdd
......@@ -24,6 +24,7 @@
config/database.yml
config/secrets.yml
config/aws.yml
config/zencoder.yml
# Coverage folder
coverage
class ZencoderSettings < Settingslogic
source "#{Rails.root}/config/zencoder.yml"
namespace Rails.env
end
......@@ -35,6 +35,7 @@ chdir APP_ROOT do
system! 'cp -nv config/database.yml.sample config/database.yml'
system! 'cp -nv config/secrets.yml.sample config/secrets.yml'
system! 'cp -nv config/aws.yml.sample config/aws.yml'
system! 'cp -nv config/zencoder.yml.sample config/zencoder.yml'
green '== Preparing database =='
system! 'bin/rails db:setup'
......
Zencoder.api_key = ZencoderSettings.api_key
defaults: &defaults
api_key: a43dec7e11dea37d04f98050436dae62
notifications:
url: 'http://localhost:3000/contents/transcode/callback'
development:
<<: *defaults
test:
api_key: a43dec7e11dea37d04f98050436dae62
notifications:
url: 'http://mediachoicecontents.com/contents/transcode/callback'
production:
<<: *defaults
api_key: PRODUCTION_ZENCODE_KEY_INSERT_HERE
staging:
<<: *defaults
api_key: STAGING_ZENCODE_KEY_INSERT_HERE
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment