Put your server online with HTTPS
Give your server a public HTTPS address for phones and other computers.
You need#
- A hostname that reaches this server.
- Ports 80 and 443 available on the server.
- The server from the previous guide.
Step 1 Set the public address#
In .env, set PUBLIC_HOST to your externally reachable bare hostname, without https:// or a path. Compose sets PUBLIC_API_URL to https://PUBLIC_HOST. Set MAX_UPLOAD_BYTES only if you need a limit other than 64MB.
Step 2 Start the Caddy overlay#
From a repository checkout, run Caddy with the root Compose file first:
docker compose -f docker-compose.yml -f infra/compose/compose.caddy.yml up -d
If you copied the files from Compose file and settings template, run:
docker compose -f docker-compose.yml -f compose.caddy.yml up -d
Caddy publishes ports 80 and 443. The browser client is served at https://PUBLIC_HOST/.
Step 3 Configure another reverse proxy#
Set TRUSTED_PROXY_CIDRS to only the direct proxy peer IPs or narrow CIDRs. Do not trust a container subnet or a broad network range.
Configure /v1/instance/events as an unbuffered server-sent events (SSE) stream. Buffering stops the administrator's live request view from updating until the proxy flushes data.
A 403 response has no body
Peppy server rejections include a JSON code. A bodiless 403 points to the proxy or network path, not a Peppy server decision. Check the proxy access log before changing server settings.
Good to know#
- With an empty
TRUSTED_PROXY_CIDRS, Peppy ignores forwarded client addresses. - Clients behind an untrusted proxy share that proxy's rate-limit bucket.
- A home-network or VPN address still needs HTTPS for clients unless it is this computer's loopback address. The Caddy overlay requires an externally reachable HTTPS hostname and publishes ports 80 and 443.
- Changing the server origin deactivates the desktop app's credentials bound to the old origin; they stay in secure storage and are not sent to the new one.