Skip to content

Commit 5f58dd4

Browse files
Update README.md
1 parent d0aeecd commit 5f58dd4

File tree

1 file changed

+18
-12
lines changed

1 file changed

+18
-12
lines changed

README.md

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,6 @@ Require the package using Composer
2929
composer require stackkit/laravel-google-cloud-tasks-queue
3030
```
3131

32-
Publish the service provider:
33-
34-
```console
35-
php artisan vendor:publish --provider=cloud-tasks
36-
```
37-
3832
Add a new queue connection to `config/queue.php`
3933

4034
```php
@@ -56,12 +50,6 @@ Add a new queue connection to `config/queue.php`
5650
],
5751
```
5852

59-
If you are using separate services for dispatching and handling tasks, and your application only dispatches jobs and should not be able to handle jobs, you may disable the task handler from `config/cloud-tasks.php`:
60-
61-
```php
62-
'disable_task_handler' => env('CLOUD_TASKS_DISABLE_TASK_HANDLER', false),
63-
```
64-
6553
Finally, change the `QUEUE_CONNECTION` to the newly defined connection.
6654

6755
```dotenv
@@ -86,6 +74,18 @@ Please check the table below on what the values mean and what their value should
8674

8775
</details>
8876

77+
Optionally, you may publish the config file:
78+
79+
```console
80+
php artisan vendor:publish --tag=cloud-tasks
81+
```
82+
83+
If you are using separate services for dispatching and handling tasks, and your application only dispatches jobs and should not be able to handle jobs, you may disable the task handler from `config/cloud-tasks.php`:
84+
85+
```php
86+
'disable_task_handler' => env('CLOUD_TASKS_DISABLE_TASK_HANDLER', false),
87+
```
88+
8989
### How to
9090

9191
#### Passing headers to a task
@@ -196,3 +196,9 @@ works:
196196
### Upgrading
197197

198198
Read [UPGRADING.MD](UPGRADING.md) on how to update versions.
199+
200+
### Troubleshooting
201+
202+
#### HttpRequest.url must start with 'https://'
203+
204+
This can happen when your application runs behind a reverse proxy. To fix this, add the application domain to Laravel's [trusted proxies](https://laravel.com/docs/11.x/requests#trusting-all-proxies). You may need to add the wildcard `*` as trusted proxy.

0 commit comments

Comments
 (0)