Make upload limit and Caddy settings configurable via env vars

- API: read the upload size limit from MAX_UPLOAD_MEGABYTES (default 15)
  and keep MAX_UPLOAD_BYTES as the byte value used by /predict
- Caddy: read the ACME email and request body limit from CADDY_EMAIL and
  CADDY_MAX_BODY (default 16MB, ~1 MB above the API limit)
- compose: pass the new variables to caddy_proxy and cnn_api

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-09-24 19:01:42 +02:00
co-authored by Claude Sonnet 5
parent 79db918564
commit 121d8a8ab4
3 changed files with 8 additions and 3 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
{
email marvin.krausser277@gmail.com
email {$CADDY_EMAIL:marvin.krausser277@gmail.com}
}
(common) {
@@ -25,7 +25,7 @@ marvinkrausser.com {
api.marvinkrausser.com {
import common
request_body {
max_size 10MB
max_size {$CADDY_MAX_BODY:16MB}
}
reverse_proxy cnn_api:8000
}