Replace the plain config map from the tutorial with this map.
Change app.example.com to your domain.
{:tls {:certificates {:manage ["app.example.com"]}
:storage {:factory 'ol.clave.storage.file/file-storage
:root (or (System/getenv "STATE_DIRECTORY")
(str (System/getProperty "user.home")
"/.local/state/my-app"))}}
:entrypoints {:http {:bind ":80"
:tls false}
:https {:bind ":443"}}
:dispatch [{:handler handler}]}
If you chose option 3, replace only the :entrypoints value with this one:
:entrypoints {:http {:bind ":8080"
:tls false}
:https {:bind ":8443"}}
The :http entrypoint serves the ACME HTTP-01 challenge and accepts ordinary HTTP traffic.
The :https entrypoint enables TLS and HTTP/3 by default because its :tls value defaults to the modern TLS settings.
Busker obtains and renews the managed certificate with Let’s Encrypt.
The storage root uses the directory supplied by systemd through STATE_DIRECTORY.
Outside systemd it uses .local/state/my-app under the current user’s home directory.
Keep this directory between deployments and back it up with the rest of the service’s durable state.
Repeated issuance from an empty directory can reach certificate authority rate limits.
See Certificates for managed certificate options.
If you already have a certificate and private key, use the static certificate settings instead of adding another full example here.