diff --git a/.env.example.json b/.env.example.json index 785e353..8f3a6f7 100644 --- a/.env.example.json +++ b/.env.example.json @@ -32,9 +32,9 @@ "SESSION_SECURE": false, "SESSION_HTTPONLY": true, - "S3_KEY": "", - "S3_SECRET": "", - "S3_REGION": "us-east-1", + "AWS_KEY": "", + "AWS_SECRET": "", + "AWS_REGION": "us-east-1", "S3_BUCKET": "buckets", "FTP_HOSTNAME": "localhost", diff --git a/config/worker.php b/config/queue.php similarity index 59% rename from config/worker.php rename to config/queue.php index 413b2a4..96b04fc 100644 --- a/config/worker.php +++ b/config/queue.php @@ -30,9 +30,20 @@ * The sqs connexion */ "sqs" => [ - "hostname" => "127.0.0.0", - "port" => 11300, - "timeout" => 10, + "url" => app_env("SQS_URL"), + 'region' => app_env('AWS_REGION'), + 'version' => 'latest', + 'credentials' => [ + 'key' => app_env('AWS_KEY'), + 'secret' => app_env('AWS_SECRET'), + ], + ], + + /** + * The database connexion + */ + "database" => [ + "table" => "queues", ] ] ]; diff --git a/config/storage.php b/config/storage.php index e14eb02..0833b07 100644 --- a/config/storage.php +++ b/config/storage.php @@ -44,11 +44,11 @@ 's3' => [ 'driver' => 's3', 'bucket' => app_env('S3_BUCKET', 'settlements'), - 'region' => app_env('S3_REGION'), + 'region' => app_env('AWS_REGION'), 'version' => 'latest', 'credentials' => [ - 'key' => app_env('S3_KEY'), - 'secret' => app_env('S3_SECRET'), + 'key' => app_env('AWS_KEY'), + 'secret' => app_env('AWS_SECRET'), ], ] ],