Add file "config/devise.yml"
This commit is contained in:
parent
e10248edd5
commit
3af5ab56a7
3 changed files with 30 additions and 8 deletions
|
@ -1 +1 @@
|
|||
4eM2JaLltIwU0pL5BetBhGJKZJMNA/Lfm/8XWles5b956676YBO1t+qXOU+B4Tc2C6utJP2RaRANuxal0U1BzfOuueNVa7W+mbDyp1M7IGpgbSz+5Ped6WOA30LlJxKD83ZXf2cOVUxLs1vOozak2O/pFPfRTKtMEoYwDvogVw7dofJCIXNydwW99b/BMLdZeI8c7bnwNRuF4PgwbVJCMl3Vi4SaelnnQM2XZgyxytgPGJsKEE176e37DcDbSQT4UcHVi7hjE3RYpfA8/QOz5Jz1SACLd9QXLL6vrFrDMcUtwj9KgUVtG2UTBphqBonAQRDbM2sjxXy3SIFrEVDorgQT1wLzKjn4fC1lGW1T9gegoKug0wd2TMvVfgP8a4SNa35n1BWAYP2Q+nmqkp1Voe3dvRp8RboBgW0nIHCE6EUpAmLkdGvNlayf2SV/TowdD80vaXhGqptf2/ccV1AKrdTYXijtj8rE1Xxu8QOqPg/uHwHEBHR9qovhoK3EeknuLgf8UEvd8+7lumGOvEPWYVg6M2ko4cwps3Nd/tXdaVpOTe6iv5Q+MzLtWTmcBXcDnHN1VpAErfWwGsLVTYbSOytGrmS8/Rr4uj/TLfmEQfg+Nq42wnFim6y7/EHeHq4P5Gl/Jdir4voPdGX7weFTYr+8EQOLpqKEN91pQIQDkchVPS7KXbZ6M3rFWhOK2H7auOjwnp3dSJkFflIBQOUc5Oe8tpaoHKv4XCH5RoeEM4q+7PagKW6hx+fPQ/wtFkoEiyePTa9FwCi08z6U9IjsYAYms/GG5sop68kIyuI24MeOrsXgqIGRnvzw3AA6KUlaiNp4PeaSDWD1l9+r+Y+W9NL2Vb+7XEzFZ5uTBeB9z/Ex1LuNQeyRUdtNXv1xnMKVNcjhSB8ZLDjcI8k84N0diCaZmJY2vcXku91awTETSuxw0+sRGC1uYGNzfuUhW6c/FANJWuvDpVuXd76x2OWYoD8pmXPRP826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Fjmd37IjVOvuDyl5PaRjX6KlXTjmyG55OEsZrVMtpAMYhJ4A1NEeo9bqryuON0BOR2T0dJmp1dGmWpC3jN1A4sWBlw+QHuewhEsvIehs4jttLqlUKWQx7i/OKGNKgprMgmu7EbhDJXl7Jm54MN+JJebTkphqAuK73m85En4VocDL+cx9Sw9Z35GX1yxYobJsyBUGfSZCpgNYZHl5EhPXMTRIjqalEXrI2xJBDeTfY/ZC0ZGOIF1QtsgApl16bYChbQHajbhA01phm1AYsn0/qCaxTkMk0QLVlwFcrVQwMKX5nOKrVu15hL9L6dMU+5YuLC/nUjogBcrF7WTIEeLUvpB3EY4ZVsbN/Dkrx5kUJvaK91F0KsiMv0xkJ63NTSMhQrh+IIzF9vr1d6AiL5W1j7m/YYDw3SS8FD1W5hXy9kRVRII8e2bYitg3bBQcU5EogkTqCxf26ZH1x7z2w--h7Q21gchGERPnZxE--K6FSU7Bx3vj5gqJ8hcj/mw==
|
23
config/devise.yml
Normal file
23
config/devise.yml
Normal file
|
@ -0,0 +1,23 @@
|
|||
default: &default
|
||||
mailer_sender: 'Libertarian party of Russia <no-reply@libertarian-party.com>'
|
||||
|
||||
development:
|
||||
<<: *default
|
||||
secret_key: 9dc30f6c18254ae4fea843e06f94d59cc41bb36e22bf54e5296a211500a73dd8db212a3460338af240802ef867bb1377a19a92e420d5578c5d97d936bd2262ec
|
||||
pepper: 1233d305eec1b7e9216f80dae77e2914ee8207c472aa60890ccd6a4e0a1f0e4339e7c7b5b4020a88c5201695d103d26d1903b4e2bd3b2900f0e63938b08c135c
|
||||
github_id: 001403b371a8e8b6bd9d
|
||||
github_secret: ea1aa41c9d6377871e6c7321dc0ae1962b259859
|
||||
|
||||
development:
|
||||
<<: *default
|
||||
secret_key: 12715a3b4ed05d1a67cd8cddd0274bddee685f5809ff262e085c2e6afb33e4dfc04bd78816e06bc0d181934a62a747ac6b77295ebd9d9d51ef6f9a9bbf4dfe58
|
||||
pepper: 6921164fe73d0dc399cae94dd7c6df959d3675fb0a3c722ee6f0bcf9c4a09c4b80ea7cff85e41056fcad8875e167570567cff0c5ebfabfb298bcd2246fc486e3
|
||||
github_id: a70df81e860ff2c3ceb0
|
||||
github_secret: bbea64bbf666361e50ca96bbf596cb9d122eff1c
|
||||
|
||||
production:
|
||||
<<: *default
|
||||
secret_key: <%= Rails.application.credentials.devise_secret_key %>
|
||||
pepper: <%= Rails.application.credentials.devise_pepper %>
|
||||
github_id: <%= Rails.application.credentials.github_client_id %>
|
||||
github_secret: <%= Rails.application.credentials.github_client_secret %>
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
# Be sure to restart your server when you modify this file.
|
||||
|
||||
conf = Rails.application.config_for(:devise).deep_symbolize_keys
|
||||
|
||||
# Use this hook to configure devise mailer, warden hooks and so forth.
|
||||
# Many of these configuration options can be set straight in your model.
|
||||
Devise.setup do |config|
|
||||
|
@ -10,7 +12,7 @@ Devise.setup do |config|
|
|||
# confirmation, reset password and unlock tokens in the database.
|
||||
# Devise will use the `secret_key_base` as its `secret_key`
|
||||
# by default. You can change it below and use your own secret key.
|
||||
config.secret_key = Rails.application.credentials.devise_secret_key
|
||||
config.secret_key = conf[:secret_key]
|
||||
|
||||
# ==> Controller configuration
|
||||
# Configure the parent class to the devise controllers.
|
||||
|
@ -20,7 +22,7 @@ Devise.setup do |config|
|
|||
# Configure the e-mail address which will be shown in Devise::Mailer,
|
||||
# note that it will be overwritten if you use your own mailer class
|
||||
# with default "from" parameter.
|
||||
config.mailer_sender = Rails.application.config.noreply_email_contact
|
||||
config.mailer_sender = conf[:mailer_sender]
|
||||
|
||||
# Configure the class responsible to send e-mails.
|
||||
config.mailer = 'UserMailer'
|
||||
|
@ -124,7 +126,7 @@ Devise.setup do |config|
|
|||
config.stretches = Rails.env.test? ? 1 : 11
|
||||
|
||||
# Set up a pepper to generate the hashed password.
|
||||
config.pepper = Rails.application.credentials.pepper
|
||||
config.pepper = conf[:pepper]
|
||||
|
||||
# Send a notification to the original email when the user's email is changed.
|
||||
config.send_email_changed_notification = true
|
||||
|
@ -268,10 +270,7 @@ Devise.setup do |config|
|
|||
# ==> OmniAuth
|
||||
# Add a new OmniAuth provider. Check the wiki for more information on setting
|
||||
# up on your models and hooks.
|
||||
config.omniauth :github,
|
||||
Rails.application.credentials.dig(:github, :client_id),
|
||||
Rails.application.credentials.dig(:github, :client_secret),
|
||||
scope: 'user'
|
||||
config.omniauth :github, conf[:github_id], conf[:github_secret], scope: 'user'
|
||||
|
||||
# ==> Warden configuration
|
||||
# If you want to use other strategies, that are not supported by Devise,
|
||||
|
|
Reference in a new issue