Deploying
Domains & HTTPS
Route your domains to an app and get Let's Encrypt certificates, renewed for you.
Default addresses#
Every app gets an address as soon as it deploys. At install, the global domain is your server's public IP on sslip.io, so myapp answers at http://myapp.203.0.113.10.sslip.io with no DNS setup at all.
To give apps addresses under your own domain instead, set a global domain and point a wildcard record, *.example.com, at your server:
Apps deployed without a domain of their own then get <app>.example.com.
Add a domain#
Point each domain at your server with an A record. With more than one server, every server can take web traffic, so point DNS at as many of them as you like.
Each has a -global variant, such as domains:add-global, for the global domains.
HTTPS#
HTTPS is off for new apps, as in Dokku. Turn it on per app:
Jokku then gets a certificate for each of the app's public domains, renews it, and redirects HTTP to HTTPS. A domain Let's Encrypt can't reach, such as an IP address or an sslip.io name for a private address, stays on plain HTTP.
Compression and HTTP/3#
Jokku's proxy compresses the text your app sends uncompressed, such as HTML, CSS, JavaScript, JSON and SVG. It uses zstd, or gzip for browsers that don't take zstd. Responses the app compressed itself, images and video go out as they are, and server-sent events still arrive as they're sent. There's nothing to set up in the app.
Behind an edge, the server the app runs on compresses its responses before they go to the edge, so the trip from home, often the slowest part, carries the smaller size too.
Compression is on for every app. To turn it off for one, for example an HTTPS page that both repeats what visitors type and holds a secret (an attack called BREACH can guess the secret from the compressed size):
HTTPS domains are served over HTTP/2 and HTTP/3. HTTP/3 runs over UDP, so open UDP port 443 as well as TCP 80 and 443 on every server that takes web traffic, or on your edge. Without it, browsers use HTTP/2, which takes one more round trip to connect.
Apps without web traffic#
Turn the proxy off for an app that shouldn't be reachable from the internet, such as a database or a queue. Other apps can still reach it over private networking.
Coming later#
certs:addto install your own certificate.ports:*to map ports the way Dokku does. For now, apps listen on$PORT.