2 Commits
Author SHA1 Message Date
siujamo ece2af988b feat(caddy): add configurable S3 addressing style
- Add S3_ADDRESSING_STYLE env var for S3-compatible endpoints
- Set addressing style and region via aws configure set
- Region now persists in aws config rather than process env var
2026-09-02 15:13:33 +08:00
zihluwang 8931598794 refactor(caddy): modularise deployment init
Split the monolithic init-caddy.sh into four ordered, idempotent
setup scripts for the Caddy deployment environment:

- install-base-deps: install required apt packages
- install-aws-cli: bootstrap AWS CLI v2
- install-caddy: fetch binary, create caddy:caddy, register systemd unit
- prepare-caddy-cicd: create bot deploy user + SSH, hand over web root
  with ACLs, write site Caddyfile and start the service
- Make the web root overridable via WEB_ROOT (default /var/www)
2026-09-02 13:47:00 +08:00