Dynamic Hosting: Let's Encrypt TLS, Reverse Proxies, R2/S3 & Hot Cache
Running Daypress dynamically gives you the full power of FormStudio, Newsletters, A/B experiments, REST APIs, and HTTP MCP while serving anonymous readers from an in-memory Gzip SSR cache in under 50 microseconds.
Option A: Built-in Let's Encrypt ACME TLS (:443)
Daypress embeds a pure-Rust ACME client (crates/daypress-server/src/acme_tls.rs) using TLS-ALPN-01 and HTTP-01 challenges. Point your domain's A / AAAA DNS records at your server and launch without Nginx or Certbot:
# Direct HTTPS on :443 + automatic HTTP -> HTTPS redirect on :80
sudo setcap 'cap_net_bind_service=+ep' /opt/daypress/daypress
/opt/daypress/daypress \
--tls-domain example.com \
--tls-email ops@example.com \
--https-port 443 \
--port 80 \
--db /opt/daypress/data/daypress.sqliteOption B: Caddy / Nginx reverse proxy + systemd
When sharing a host with other services, bind Daypress to loopback (127.0.0.1:8090), set DAYPRESS_TRUST_PROXY=true so rate-limiters and secure cookies honor X-Forwarded-For / X-Forwarded-Proto, and supervise with systemd:
# /etc/systemd/system/daypress.service
[Unit]
Description=Daypress Rust CMS
After=network-online.target
[Service]
Type=simple
User=daypress
WorkingDirectory=/var/lib/daypress
Environment="DAYPRESS_TRUST_PROXY=true"
ExecStart=/usr/bin/daypress --host 127.0.0.1 --port 8090 --db /var/lib/daypress/data/daypress.sqlite
Restart=always
RestartSec=2
NoNewPrivileges=true
ProtectSystem=strict
ReadWritePaths=/var/lib/daypress
[Install]
WantedBy=multi-user.target
# Caddyfile (3 lines — automatic HTTPS & HTTP/3)
example.com {
reverse_proxy 127.0.0.1:8090
}Cloudflare R2 / S3 media offload & SQLite replica
Configure S3-compatible object storage under Settings → Media (/d-admin/options-media) or inspect live sync telemetry via daypress_get_storage_s3_status. Daypress supports Cloudflare R2, AWS S3, Backblaze B2, and MinIO for two independent tasks:
- Public Media Offload: Newly uploaded originals and AVIF/WebP derivatives sync to your bucket and rewrite public asset URLs to your CDN domain.
- Continuous WAL SQLite Replica: Streams consistent online SQLite snapshots to an encrypted private prefix on schedule so a fresh node can recover state in seconds.
<50µs Gzip SSR Hot Cache & Engine telemetry
Open System → Daypress Engine (/d-admin/daypress-engine) to inspect SQLite WAL journal statistics, memory footprint, and the lock-free Pre-Compressed SSR Hot Cache:
- Anonymous
GETresponses are pre-compressed with Gzip in RAM and served directly from memory in under 50 microseconds (X-Daypress-Cache: HIT). - Logged-in editors, password/subscriber-gated posts, active server-side A/B tests, and query-filtered
LoopGridviews automatically bypass the shared cache (X-Daypress-Cache: BYPASS). - Any content, template, menu, option, or form mutation triggers targeted automatic cache invalidation—or purge manually via
POST /wp-json/daypress/v1/cache/purge.
