# How To: Extend Connection Timeout to Upstream

### Overview:

In CloudGuard WAF as a Service, the default connection timeout for both NGINX and CloudFront is set to 60 seconds. To extend the timeout for specific assets, adjust the settings in the asset's advanced options.

{% hint style="info" %}
Adjusting the NGINX timeout configuration will automatically update CloudFront's settings
{% endhint %}

### What To Do?

To configure the extended timeout for a specific asset, follow these steps:

1. Log in to the Infinity Portal.
2. Open the WAF application from the application menu.
3. Navigate to the **Assets** page under the **Policy** tab.
4. Select the desired asset.
5. Click on **Advanced...** proxy field to access the extended timeout configuration.
6. Click on **Advanced Settings**.
7. **Add the following fields** with the desired timeout configuration needed:

| Key                | Value                      |
| ------------------ | -------------------------- |
| Read Timeout       | Numeric Number (up to 180) |
| Proxy Send Timeout | Numeric Number (up to 180) |
| Keep Alive Timeout | Numeric Number (up to 180) |

8. Click **OK**
9. Click **Enforce**.

{% hint style="warning" %}
Extended Timeout configuration is supported up to 180 seconds. \
For longer timeouts, please contact Check Point Support.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://waf-doc.inext.checkpoint.com/troubleshooting/waf-as-a-service/how-to-extend-connection-timeout-to-upstream.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
