Adding Caddy to your Shell
Rundevbox add caddy, or add the following to your devbox.json
devbox search caddy. You can also view the available versions on
Nixhub
Caddy Plugin Details
The Caddy plugin will automatically create the following configuration when you install Caddy withdevbox add
Services
- caddy
devbox services start|stop caddy to start and stop httpd in the background
Helper Files
The following helper files will be created in your project directory:- {PROJECT_DIR}/devbox.d/caddy/Caddyfile
- {PROJECT_DIR}/devbox.d/web/index.html
./devbox.d/web as the root. To change this, you
should modify the default ./devbox.d/caddy/Caddyfile or change the CADDY_ROOT_DIR environment
variable
Environment Variables
Notes
You can customize the config used by the caddy service by modifying the Caddyfile in devbox.d/caddy, or by changing the CADDY_CONFIG environment variable to point to a custom config. The custom config must be either JSON or Caddyfile format.Disabling the Caddy Plugin
You can disable the Caddy plugin by runningdevbox add caddy --disable-plugin, or by setting the
disable_plugin field in your devbox.json: