From cb3e80e4fcabf7060479ea7a3438717b821434a2 Mon Sep 17 00:00:00 2001 From: Nicolas Braud-Santoni Date: Sun, 7 Aug 2016 21:24:10 +0200 Subject: Secure access to the database The password is provided throught the environment, and the DB is accessed through a UNIX socket. --- config/database.yml | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) (limited to 'config/database.yml') diff --git a/config/database.yml b/config/database.yml index f842c1e..ce0e60d 100644 --- a/config/database.yml +++ b/config/database.yml @@ -14,22 +14,5 @@ development: adapter: mysql database: mappe username: mappe - password: keuchfrosch - host: localhost - -# Warning: The database defined as 'test' will be erased and -# re-generated from your development database when you run 'rake'. -# Do not set this db to the same as development or production. -test: - adapter: mysql - database: mappe - username: ffscript - password: woasinid - host: localhost - -production: - adapter: mysql - database: mappe - username: ffscript - password: woasinid - host: localhost + password: <%= ENV['MANMAN_DB_PWD'] %> + socket: /var/run/mysql.sock -- cgit v1.2.1