Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions getting-started/deployment/local.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,20 @@ OPS_SMTP_ALLOWED_PORTS=25,465,587,2525

<RestartContainers />

## Configuring the webhook sync timeout (nginx)

OpenOps configures nginx with a separate timeout for webhook calls that run in sync mode.

To set this timeout, add the `OPS_FLOW_TIMEOUT_SECONDS` environment variable to the `.env` file in your installation folder.

```shell
OPS_FLOW_TIMEOUT_SECONDS=600
```

This value is also used to set `NGINX_WEBHOOK_SYNC_TIMEOUT` inside the container.

> If `OPS_FLOW_TIMEOUT_SECONDS` is not set, `NGINX_WEBHOOK_SYNC_TIMEOUT` defaults to `600s`.

## Using Azure CLI in workflows: running with local credentials

It is possible to share your local session with the platform for local applications.
Expand Down
10 changes: 10 additions & 0 deletions workflow-management/human-in-the-loop.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,16 @@ In this case, you can create the approval part of your workflow as follows:
3. Add the **Wait For Approval** action from the **Approval** block. Once the stakeholder clicks a link, this action updates the approval status accordingly.
4. Add the **Condition** action to define steps for approval and disapproval.

> **Note**
> The **Create Approval Links** action generates links using the instance public URL. The link opens a resume page in the OpenOps UI, which then resumes the workflow with either the approve or disapprove action.

#### Adding attachments (Microsoft Outlook)

When using **Microsoft Outlook** **Send Email**, add attachments as a list where each item includes:

* **File** (required)
* **File Name** (optional). If omitted, the file name from the uploaded file is used.

Here's a sample workflow that uses **Create Approval Links**, delivers an email notification using **Send Email** from the **SMTP** block, and then proceeds based on the output of the **Wait For Approval** action:
![Sending approval links via email](/images/hitl-email-approval-links.png)

Expand Down
11 changes: 11 additions & 0 deletions workflow-management/webhook-responses.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,17 @@ If your workflow doesn't include a **Send Webhook Response** action, OpenOps aut
- **Include error handling**: Use conditional branching to send different responses based on workflow outcomes
- **Keep responses lightweight**: Avoid sending large payloads in webhook responses

## Troubleshooting

### Webhook callers time out when waiting for a synchronous response

If the webhook caller waits for a response from the workflow and the request times out at the reverse proxy, increase the Nginx timeouts for the webhook sync endpoint.

1. Set the `NGINX_WEBHOOK_SYNC_TIMEOUT` environment variable.
2. Deploy/restart the Nginx container so it picks up the new value.

OpenOps applies `NGINX_WEBHOOK_SYNC_TIMEOUT` to the Nginx timeouts for requests that match the `/api/v1/webhooks/<id>/sync` path.

## Limitations

- Only one response can be sent per webhook trigger
Expand Down