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
@@ -4,7 +4,7 @@ Notes for agents working in this repository. Überbringer is a single Go
|
||||
binary. It takes JSON print jobs over a REST API (Fiber v3) and queues them in
|
||||
memory. It renders each job to ESC/POS and sends it over TCP port 9100 to one
|
||||
Epson receipt printer. It ships in two forms: as release tarballs, which
|
||||
`install.sh` installs behind nginx, and as the Alpine image built from the
|
||||
`install.sh` installs behind Caddy, and as the Alpine image built from the
|
||||
root `Dockerfile`.
|
||||
|
||||
## Read first
|
||||
|
||||
Reference in new issue
Block a user