mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-25 14:37:59 +01:00
T350: Regenerated encyption keys for all environments and moved sessions to the database.
This commit is contained in:
parent
eb3c88b1e1
commit
d52ef51db0
7 changed files with 37 additions and 6 deletions
|
@ -80,7 +80,7 @@ return [
|
|||
|
||||
'key' => env('APP_KEY'),
|
||||
|
||||
'cipher' => MCRYPT_RIJNDAEL_256,
|
||||
'cipher' => MCRYPT_RIJNDAEL_128,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
|
@ -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),
|
||||
|
||||
];
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
}
|
|
@ -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
|
||||
|
|
|
@ -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.
Binary file not shown.
Loading…
Reference in a new issue