Skip to content

Chef cookbook for caddy | Category: Applications

Notifications You must be signed in to change notification settings

brodock/chef-caddy

Repository files navigation

caddy Cookbook

This cookbook installs and runs caddy webserver https://caddyserver.com

Requirements

cookbooks

  • ark

Attributes

caddy::default

Key Type Description Default
['caddy']['features'] Array features to download and install with caddy []
['caddy']['email'] String email to use with registration in letsencryt nil
['caddy']['hosts'] Hash Caddyfile in form of Hash {}

Usage

caddy::default

Set eMail - ['caddy']['email']

Set your eMail to register with letsencryt for HTTPS Support

Write your Caddyfile - ['caddy']['hosts']
{
  'localhost:80' => {
    'log' => 'localhost.log'
  }
  'localhost:8080' => {
    'log' => 'localhost_alt.log'
  }
}
(Optional} Add features

Add features to be downloaded, e.g.

['cors','git']

then include caddy in your node's run_list:

{
  "name":"my_node",
  "run_list": [
    "recipe[caddy]"
  ]
}

Contributing

TODO: (optional) If this is a public cookbook, detail the process for contributing. If this is a private cookbook, remove this section.

e.g.

  1. Fork the repository on Github
  2. Create a named feature branch (like add_component_x)
  3. Write your change
  4. Write tests for your change (if applicable)
  5. Run the tests, ensuring they all pass
  6. Submit a Pull Request using Github

License and Authors

Authors: TODO: List authors

About

Chef cookbook for caddy | Category: Applications

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published