Securing Sites with TLS
By default, Herd serves sites over HTTP. However, if you would like to serve a site over encrypted TLS using HTTP/2, you may secure your sites. This is sometimes necessary when working with redirect URLs and other scenarios.Via the GUI
You can secure/unsecure a site in the Applications window. You can open it via the Herd menu bar icon and selecting “Applications”. Select the site and use the “HTTPS” toggle in the “Environment” section of the inspector. If you’re securing the site, you may need to confirm one or more permission related popups to create the local certificate.Via the CLI
If you prefer to use the CLI, you can use theherd secure command to secure/unsecure a site.
For example, if Herd serves your site via the example-site.test domain, you need run the following command to secure it:
unsecure command.
Like the secure command, this command accepts the sitename that you wish to unsecure: