Updated Airbrake configs

This commit is contained in:
Vokhmin Alexey V 2015-11-15 01:21:22 +03:00
parent 6f6d0fe74c
commit a938e31d81
3 changed files with 8 additions and 4 deletions

View File

@ -12,10 +12,12 @@ common: &common
log_server:
host: <%= ENV["ABF_WORKER_LOG_SERVER_HOST"] %>
port: <%= ENV["ABF_WORKER_LOG_SERVER_PORT"] %>
airbrake:
api_key: <%= ENV["AIRBRAKE_API_KEY"] %>
host: <%= ENV["AIRBRAKE_HOST"] %>
keys:
key_pair_secret_key: <%= ENV["KEY_PAIR_SECRET_KEY"] %>
node_instruction_secret_key: <%= ENV["NODE_INSTRUCTION_SECRET_KEY"] %>
airbrake_api_key: <%= ENV["AIRBRAKE_API_KEY"] %>
secret_token: <%= ENV["SECRET_TOKEN"] %>
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
devise:

View File

@ -12,10 +12,12 @@ common: &common
log_server:
host: 127.0.0.1
port: 6379
airbrake:
api_key: 'airbrake_api_key'
host: 'errbit.example.com'
keys:
key_pair_secret_key: 'key_pair_secret_key'
node_instruction_secret_key: 'node_instruction_secret_key'
airbrake_api_key: 'airbrake_api_key'
devise_pepper: 'e295a79fb7966e94a6e8b184ba65791a'
secret_token: 'e295a79fb7966e94a6e8b184ba65791a'
devise:

View File

@ -1,8 +1,8 @@
require 'airbrake'
Airbrake.configure do |config|
config.api_key = APP_CONFIG['keys']['airbrake_api_key']
config.host = 'errbit.rosalinux.ru'
config.api_key = APP_CONFIG['airbrake']['api_key']
config.host = APP_CONFIG['airbrake']['host']
config.port = 80
config.secure = config.port == 443
end