mirror of
https://github.com/internetee/registry.git
synced 2025-05-29 17:10:08 +02:00
removed devise secret
This commit is contained in:
parent
66568b3bc3
commit
537326df1f
6 changed files with 10 additions and 13 deletions
|
@ -3,6 +3,7 @@
|
||||||
* Added application-exapmle.yml and removed application.yml from repo, please
|
* Added application-exapmle.yml and removed application.yml from repo, please
|
||||||
add config/application.yml back when deploying:
|
add config/application.yml back when deploying:
|
||||||
cp current/config/application-example.yml shared/config/application.yml # and edit it
|
cp current/config/application-example.yml shared/config/application.yml # and edit it
|
||||||
|
* Removed config/initilizers/devise_secret.rb, use application.yml
|
||||||
|
|
||||||
16.01.2015
|
16.01.2015
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,6 @@ Manual demo install and database setup:
|
||||||
rbenv local 2.2.0
|
rbenv local 2.2.0
|
||||||
bundle
|
bundle
|
||||||
cp config/database-example.yml config/database.yml # and edit it
|
cp config/database-example.yml config/database.yml # and edit it
|
||||||
cp config/secrets-example.yml config/secrets.yml # and edit it, generate key with 'rake secret'
|
|
||||||
cp config/initializers/devise_secret_example.rb.txt config/initializers/devise_secret.rb # and edit
|
cp config/initializers/devise_secret_example.rb.txt config/initializers/devise_secret.rb # and edit
|
||||||
bundle exec rake assets:precompile
|
bundle exec rake assets:precompile
|
||||||
|
|
||||||
|
@ -64,8 +63,6 @@ Production install (database schema should be loaded and seeds should be present
|
||||||
cd registry
|
cd registry
|
||||||
cp current/config/application-example.yml shared/config/application.yml # and edit it
|
cp current/config/application-example.yml shared/config/application.yml # and edit it
|
||||||
cp current/config/database-example.yml shared/config/database.yml # and edit it
|
cp current/config/database-example.yml shared/config/database.yml # and edit it
|
||||||
# You can generate secret keys with 'bundle exec rake secret'
|
|
||||||
cp current/config/secrets-example.yml shared/config/secrets.yml # and edit it
|
|
||||||
cp current/config/initializers/devise_secret_example.rb.txt shared/config/initializers/devise_secret.rb # and edit it
|
cp current/config/initializers/devise_secret_example.rb.txt shared/config/initializers/devise_secret.rb # and edit it
|
||||||
|
|
||||||
vi /etc/apache2/sites-enabled/registry.conf # add conf and all needed serts
|
vi /etc/apache2/sites-enabled/registry.conf # add conf and all needed serts
|
||||||
|
|
|
@ -2,6 +2,12 @@ defaults: &defaults
|
||||||
app_name: .EE Registry
|
app_name: .EE Registry
|
||||||
zonefile_export_dir: 'export/zonefiles'
|
zonefile_export_dir: 'export/zonefiles'
|
||||||
|
|
||||||
|
# You can use `rake secret` to generate a secure secret key.
|
||||||
|
# Your secret key is used for verifying the integrity of signed cookies.
|
||||||
|
# If you change this key, all old signed cookies will become invalid!
|
||||||
|
secret_key_base: please-change-it-you-can-generate-it-with-rake-secret
|
||||||
|
devise_secret: please-change-it-you-can-generate-it-with-rake-secret
|
||||||
|
|
||||||
development:
|
development:
|
||||||
<<: *defaults
|
<<: *defaults
|
||||||
|
|
||||||
|
|
|
@ -36,9 +36,8 @@ end
|
||||||
# Manually create these paths in shared/ (eg: shared/config/database.yml) in your server.
|
# Manually create these paths in shared/ (eg: shared/config/database.yml) in your server.
|
||||||
# They will be linked in the 'deploy:link_shared_paths' step.
|
# They will be linked in the 'deploy:link_shared_paths' step.
|
||||||
set :shared_paths, [
|
set :shared_paths, [
|
||||||
'config/initializers/devise_secret.rb',
|
'config/application.yml',
|
||||||
'config/database.yml',
|
'config/database.yml',
|
||||||
'config/secrets.yml',
|
|
||||||
'log',
|
'log',
|
||||||
'public/system',
|
'public/system',
|
||||||
'export/zonefiles'
|
'export/zonefiles'
|
||||||
|
|
|
@ -4,9 +4,8 @@ Devise.setup do |config|
|
||||||
# The secret key used by Devise. Devise uses this key to generate
|
# The secret key used by Devise. Devise uses this key to generate
|
||||||
# random tokens. Changing this key will render invalid all existing
|
# random tokens. Changing this key will render invalid all existing
|
||||||
# confirmation, reset password and unlock tokens in the database.
|
# confirmation, reset password and unlock tokens in the database.
|
||||||
# config.secret_key = 'd4827f0d88c93db5c68eb43d7f86dc141ea7c44ca8f' \
|
config.secret_key = APP_CONFIG['devise_secret']
|
||||||
# '044773265a2aa8786122c4364271960a10a956701c3c5fd4509e9c9780886200a3b772e6185271001987'
|
|
||||||
|
|
||||||
# ==> Mailer Configuration
|
# ==> Mailer Configuration
|
||||||
# Configure the e-mail address which will be shown in Devise::Mailer,
|
# 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
|
# note that it will be overwritten if you use your own mailer class
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
# Please generate production secret with 'rake secret' command
|
|
||||||
# example secret: 'c831d559c77de1e6544ed4954d5752c294d2390036e45962dc0d44942f20db795ab7b0485b34faf237183660348e3192344404f52df7dee23d8031521d550f89'
|
|
||||||
Devise.setup do |config|
|
|
||||||
config.secret_key = 'please-change'
|
|
||||||
end
|
|
Loading…
Add table
Add a link
Reference in a new issue