T350: Regenerated encyption keys for all environments and moved sessions to the database.

This commit is contained in:
Peter Deltchev 2015-09-12 15:56:22 -07:00
parent eb3c88b1e1
commit d52ef51db0
7 changed files with 37 additions and 6 deletions

View file

@ -80,7 +80,7 @@ return [
'key' => env('APP_KEY'),
'cipher' => MCRYPT_RIJNDAEL_256,
'cipher' => MCRYPT_RIJNDAEL_128,
/*
|--------------------------------------------------------------------------

View file

@ -16,7 +16,7 @@ return [
|
*/
'driver' => env('SESSION_DRIVER', 'file'),
'driver' => env('SESSION_DRIVER', 'database'),
/*
|--------------------------------------------------------------------------
@ -148,6 +148,6 @@ return [
|
*/
'secure' => false,
'secure' => env('SESSION_HTTPS_ONLY', true),
];

View file

@ -0,0 +1,31 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateSessionTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('sessions', function (Blueprint $table) {
$table->string('id')->unique();
$table->text('payload');
$table->integer('last_activity');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('sessions');
}
}

View file

@ -8,7 +8,7 @@ DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret
SESSION_DRIVER=file
SESSION_HTTPS_ONLY=false
QUEUE_DRIVER=sync
MAIL_DRIVER=smtp

View file

@ -1,14 +1,14 @@
APP_ENV=local
APP_DEBUG=true
APP_URL=http://pony.fm.local/
APP_KEY=AQUSDTDK5xA04yb9eO9iwlm72NpC8e90
APP_KEY=q5lKAapzJwZas0izFS1CfCn3oX8Kk2jj
DB_HOST=localhost
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret
SESSION_DRIVER=file
SESSION_HTTPS_ONLY=false
QUEUE_DRIVER=sync
MAIL_DRIVER=smtp

Binary file not shown.