Skip to content

Commit e962e88

Browse files
authored
Update Caddy configuration for request body size (#7)
1 parent 39920f1 commit e962e88

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

docs/infrastructure/reverse-proxy.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ If you plan to use large file uploads (GPX files, Google Timeline exports, etc.)
3030
- **Cloudflare Free Tier**: 100MB maximum upload size
3131
- **nginx**: Configure `client_max_body_size`
3232
- **Apache**: Configure `LimitRequestBody`
33-
- **Caddy**: Configure `max_request_body`
33+
- **Caddy**: Configure `request_body.max_size`
3434

3535
See [Import Data](../usage/import-data.md) for information about supported file formats.
3636

@@ -142,7 +142,9 @@ Caddy provides automatic SSL with a simple configuration:
142142
```caddy
143143
reitti.example.com {
144144
# Increase upload size limit
145-
max_request_body 200MB
145+
request_body {
146+
max_size 200MB
147+
}
146148
147149
# Reverse proxy
148150
reverse_proxy 127.0.0.1:8080 {
@@ -275,4 +277,4 @@ Ensure all traffic redirects to HTTPS and certificates are valid. If you go to *
275277
```bash
276278
curl -v -H "X-Forwarded-Proto: https" https://reitti.example.com/actuator/health
277279
```
278-
4. Test with smaller files first, then increase size gradually
280+
4. Test with smaller files first, then increase size gradually

0 commit comments

Comments
 (0)