Install behind Caddy instead of nginx and acme.sh
Security / Vulnerability check (push) Successful in 52s
Test / Lint and test (push) Successful in 2m0s

install.sh sets up a fresh Debian or Ubuntu host behind Caddy, installed
from Caddy's apt repository, which obtains and renews the certificate
itself. The site goes to /etc/caddy/uberbringer.caddy and the Caddyfile
imports it; an edited Caddyfile only gains the import line. The result is
validated as the caddy user, and both files are put back if Caddy rejects
it. Caddy's body limit follows webserver.body_limit, and a larger body
gets the daemon's 413 body_too_large JSON. A re-run upgrades the binary,
the unit and Caddy and restarts the service. The script does not migrate
hosts set up by the 0.1 script.

The Docker image stays a proxy-free microservice behind the operator's
own reverse proxy. The README credits the pre-refactor code, written
without AI, and design.md records the persistent job store and image
previews as deferred work.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
57_WolveandClaude Opus 5.5 committed 2026-11-30 01:09:07 -06:00
1 parent 4562f0cebb
commit 92dcacb3b9
7 files changed
+353 -278

No files matched your search

+6 -2
View File
@@ -13,11 +13,15 @@
rate_window = "1m"
# Reverse proxies allowed to report the real client IP in proxy_header.
# install.sh configures nginx to set X-Real-IP.
# install.sh configures Caddy to set X-Real-IP. In Docker, list your
# proxy's address or its container network, e.g. ["172.18.0.0/16"].
trusted_proxies = ["127.0.0.1", "::1"]
proxy_header = "X-Real-IP"
body_limit = 4194304 # bytes (4 MiB); raise it for large base64 images
# Bytes (4 MiB); raise it for large base64 images. After a change, re-run
# install.sh, which copies it into Caddy's limit and restarts the daemon;
# behind another proxy, raise that proxy's limit too.
body_limit = 4194304
read_timeout = "15s"
write_timeout = "15s"
idle_timeout = "60s"