Install behind Caddy instead of nginx and acme.sh
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:
1 parent
4562f0cebb
commit
92dcacb3b9
7 files changed
+353
-278
No files matched your search
+3
-1
@@ -19,7 +19,9 @@ RUN apk add --no-cache ca-certificates tzdata \
|
||||
COPY --from=build /out/uberbringer /usr/local/bin/uberbringer
|
||||
USER uberbringer
|
||||
WORKDIR /etc/uberbringer
|
||||
# Mount config.toml at /etc/uberbringer/config.toml with bind_ip = "0.0.0.0".
|
||||
# Plain HTTP for a reverse proxy in front, which terminates TLS. Mount
|
||||
# config.toml at /etc/uberbringer/config.toml with bind_ip = "0.0.0.0" and the
|
||||
# proxy's address in trusted_proxies.
|
||||
EXPOSE 8080
|
||||
ENTRYPOINT ["/usr/local/bin/uberbringer"]
|
||||
CMD ["--config", "/etc/uberbringer/config.toml"]
|
||||
Reference in new issue
Block a user