Skip to content

Commit 322349e

Browse files
committed
docs: add proxy read timeout to reverse proxy examples
Signed-off-by: Oleksander Piskun <oleksandr2088@icloud.com>
1 parent ce8caf4 commit 322349e

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ server {
9292
proxy_set_header X-Real-IP $remote_addr;
9393
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
9494
proxy_set_header X-Forwarded-Proto $scheme;
95+
proxy_read_timeout 1800s;
9596
}
9697
}
9798
```
@@ -100,7 +101,11 @@ server {
100101

101102
```caddyfile
102103
nextcloud.com {
103-
reverse_proxy /exapps/* 127.0.0.1:8780
104+
reverse_proxy /exapps/* 127.0.0.1:8780 {
105+
transport http {
106+
read_timeout 1800s
107+
}
108+
}
104109
}
105110
```
106111

@@ -119,10 +124,17 @@ http:
119124
loadBalancer:
120125
servers:
121126
- url: "http://127.0.0.1:8780"
127+
serversTransport: exapps-transport
128+
serversTransports:
129+
exapps-transport:
130+
forwardingTimeouts:
131+
responseHeaderTimeout: 1800s
122132
```
123133
124134
> **Note:** Replace `127.0.0.1` with the actual IP address of your HaRP container if it is running on a different host.
125135

136+
> **Note:** The `1800s` (30 minutes) read timeout matches HaRP's default `HP_TIMEOUT_SERVER` value. This is required for slow-responding ExApps (e.g., `context_chat_backend`) that may take a long time to process requests like document indexing or AI responses.
137+
126138
### Cloudflare Tunneling Example
127139
![cloudflare-tunnel-1](assets/cloudflare-tunnel-1.png)
128140

0 commit comments

Comments
 (0)