21
1
Fork 0
mirror of https://github.com/Evolix/chexpire.git synced 2024-04-28 23:10:49 +02:00

Don't use shared credentials, back to old secrets ignored files

Helps for open-source and multiple instances projects.
This commit is contained in:
Colin Darie 2018-05-24 11:45:27 +02:00
parent 2ba184b442
commit 2f4bee55e1
No known key found for this signature in database
GPG key ID: 4FB865FDBCA4BCC4
6 changed files with 12 additions and 2 deletions

2
.gitignore vendored
View file

@ -24,6 +24,8 @@
# Ignore master key for decrypting credentials and more.
/config/master.key
/config/credentials.yml.enc
/config/secrets.yml
/config/database.yml
/config/chexpire.yml
/public/packs

View file

@ -1 +0,0 @@
V/1ojA4fZ+44jJiaT8duKLAgUSnllv4rRDCw5u/G5GyODS5FDiswY+xZ6taIeuCIQZNoehRz0HOWOcW9th11lo/oPoHsCB8bSB4MNkMjuU3JX3jtkEv80YZINnfXD47YdwkndCRGG1LD0rEVDcvkzCK/6t+sp7mHkJAmfllIij8OYHrQ/SEAagrgYcHVl714npcHda6X8WzTE2cetvBa7rL2HxRZgIEz/U7h8uyBkZHn65xabGHsxg3p0OhUrsoD141tZ9+AGJSP+3WzSl7t8mWODWT+mQB8PhjNlD1U4jmsPHuxz1FoE+wKttk/ugJ/TAfhjd6tKQ95IIZ/3ScvDB5MjZU8suBS9EESY8bjSGEVameWL7EtrOIeIF0hcf/vYfn+QOKdJi0bCkTdXbLphQ6vr6/91K6Z2glp--63QQNO2LKDQrHtFI--9aU0pNnoUMQxyRd3yTtbzw==

View file

@ -11,6 +11,8 @@ Rails.application.configure do
# Do not eager load code on boot.
config.eager_load = false
config.require_master_key = false
# Show full error reports.
config.consider_all_requests_local = true

View file

@ -18,7 +18,7 @@ Rails.application.configure do
# Ensures that a master key has been made available in either ENV["RAILS_MASTER_KEY"]
# or in config/master.key. This key is used to decrypt credentials (and other encrypted files).
# config.require_master_key = true
config.require_master_key = false
# Disable serving static files from the `/public` folder by default since
# Apache or NGINX already handles this.

View file

@ -12,6 +12,8 @@ Rails.application.configure do
# preloads Rails for running tests, you may have to set it to true.
config.eager_load = false
config.require_master_key = false
# Configure public file server for tests with Cache-Control for performance.
config.public_file_server.enabled = true
config.public_file_server.headers = {

View file

@ -0,0 +1,5 @@
development:
secret_key_base: "run rails secret and paste the result here"
test:
secret_key_base: "run rails secret and paste the result here"