-
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #122 from miccehedin/app-engine
App engine
- Loading branch information
Showing
12 changed files
with
278 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,6 +46,16 @@ Please check the [Laravel support policy](https://laravel.com/docs/master/releas | |
'queue' => env('STACKKIT_CLOUD_TASKS_QUEUE', 'default'), | ||
'service_account_email' => env('STACKKIT_CLOUD_TASKS_SERVICE_EMAIL', ''), | ||
'signed_audience' => env('STACKKIT_CLOUD_TASKS_SIGNED_AUDIENCE', true), | ||
|
||
// Required when using AppEngine | ||
'app_engine' => env('STACKKIT_APP_ENGINE_TASK', false), | ||
'app_engine_service' => env('STACKKIT_APP_ENGINE_SERVICE', ''), | ||
|
||
// Required when not using AppEngine | ||
'handler' => env('STACKKIT_CLOUD_TASKS_HANDLER', ''), | ||
'service_account_email' => env('STACKKIT_CLOUD_TASKS_SERVICE_EMAIL', ''), | ||
'signed_audience' => env('STACKKIT_CLOUD_TASKS_SIGNED_AUDIENCE', true), | ||
|
||
// Optional: The deadline in seconds for requests sent to the worker. If the worker | ||
// does not respond by this deadline then the request is cancelled and the attempt | ||
// is marked as a DEADLINE_EXCEEDED failure. | ||
|
@@ -64,13 +74,17 @@ Now that the package is installed, the final step is to set the correct environm | |
|
||
Please check the table below on what the values mean and what their value should be. | ||
|
||
| Environment variable | Description |Example | ||
--------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--- | ||
| `STACKKIT_CLOUD_TASKS_PROJECT` | The project your queue belongs to. |`my-project` | ||
| `STACKKIT_CLOUD_TASKS_LOCATION` | The region where the project is hosted |`europe-west6` | ||
| `STACKKIT_CLOUD_TASKS_QUEUE` | The default queue a job will be added to |`emails` | ||
| `STACKKIT_CLOUD_TASKS_SERVICE_EMAIL` | The email address of the service account. Important, it should have the correct roles. See the section below which roles. |`[email protected]` | ||
| `STACKKIT_CLOUD_TASKS_HANDLER` (optional) | The URL that Cloud Tasks will call to process a job. This should be the URL to your Laravel app. By default we will use the URL that dispatched the job. |`https://<your website>.com` | ||
| Environment variable | Description |Example | ||
---------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------|--- | ||
| `STACKKIT_CLOUD_TASKS_PROJECT` | The project your queue belongs to. |`my-project` | ||
| `STACKKIT_CLOUD_TASKS_LOCATION` | The region where the project is hosted. |`europe-west6` | ||
| `STACKKIT_CLOUD_TASKS_QUEUE` | The default queue a job will be added to. |`emails` | ||
| **App Engine** | ||
| `STACKKIT_APP_ENGINE_TASK` (optional) | Set to true to use App Engine task (else a Http task will be used). Defaults to false. |`true` | ||
| `STACKKIT_APP_ENGINE_SERVICE` (optional) | The App Engine service to handle the task (only if using App Engine task). |`api` | ||
| **Non- App Engine apps** | ||
| `STACKKIT_CLOUD_TASKS_SERVICE_EMAIL` (optional) | The email address of the service account. Important, it should have the correct roles. See the section below which roles. |`[email protected]` | ||
| `STACKKIT_CLOUD_TASKS_HANDLER` (optional) | The URL that Cloud Tasks will call to process a job. This should be the URL to your Laravel app. By default we will use the URL that dispatched the job. |`https://<your website>.com` | ||
| `STACKKIT_CLOUD_TASKS_SIGNED_AUDIENCE` (optional) | True or false depending if you want extra security by signing the audience of your tasks. May misbehave in certain Cloud Run setups. Defaults to true. | `true` | ||
</details> | ||
<details> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.