diff options
author | Nicolas Braud-Santoni <nicoo@ffgraz.net> | 2016-08-07 21:24:10 +0200 |
---|---|---|
committer | Nicolas Braud-Santoni <nicoo@ffgraz.net> | 2016-08-07 21:24:15 +0200 |
commit | cb3e80e4fcabf7060479ea7a3438717b821434a2 (patch) | |
tree | a4713126fdb5460ccf249a6aca188303e2f14ff3 /config | |
parent | 54032c8c4cae71b5d18d1e30acbb364da90453a5 (diff) |
Secure access to the database
The password is provided throught the environment,
and the DB is accessed through a UNIX socket.
Diffstat (limited to 'config')
-rw-r--r-- | config/database.yml | 21 |
1 files changed, 2 insertions, 19 deletions
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 |