Documentation

SSL

Browse documentation

Read this page as HTML, Markdown, or structured JSON—or open the published Markdown with an AI assistant. Gemini receives the prompt through your clipboard because its signed-out page does not reliably prefill URL text; paste when the new tab opens. External assistants need the public site URL.

SSL

For development use self-signed keys and edit config/environments/development.yml

YAML
ssl_key_file: example.key
ssl_cert_file: example.crt

For production, please use CertBot (https://certbot.eff.org) and edit config/environments/production.yml

It is possible to set this in your Amber configure block as well, in config/application.cr

Crystal
Amber::Server.configure do |setting|
  # Server options
  setting.name = "Example web application."
  setting.port = 3000 # Port you wish your app to run
  setting.host = "0.0.0.0"
  setting.ssl_key_file = "example.key"
  setting.ssl_cert_file = "example.crt"
end