GithubHelp home page GithubHelp logo

dzabel / chef-caddy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from computerlyrik/chef-caddy

0.0 2.0 1.0 45 KB

Chef cookbook for caddy | Category: Applications

Ruby 76.27% HTML 5.57% Shell 18.16%

chef-caddy's Introduction

caddy Cookbook

Cookbook Version Build Status

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

Requirements

Operating Systems

  • Ubuntu
  • Debian
  • CentOS

In various versions. See .kitchen.yml for details.

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',
    'proxy_header' => ['"Host {host}", "X-Real-IP {remote}"'],
    "rewrite": {
      "if": "{path} not_match ^/wp-admin",
      "to": "{path} {path}/ /index.php?_url={uri}"
    }
  },
  '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]"
  ]
}

Test

kitchen test

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:

  • Christian Fischer
  • Gabriel Mazetto

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.