Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

RSS

redirect (19) Versions 3.0.0

Create Nginx host to redirect to another website

Policyfile
Berkshelf
Knife
cookbook 'redirect', '= 3.0.0', :supermarket
cookbook 'redirect', '= 3.0.0'
knife supermarket install redirect
knife supermarket download redirect
README
Dependencies
Changelog
Quality 33%

redirect-cookbook

Chef cookbook
license

Create Nginx host to redirect to another website. Makes use of ngx cookbook under the hood.

Usage

Resource

redirect_host 'www.domain.tld' do
  target 'domain.tld'  # host to redirect to (REQUIRED)
  path '/hello'  # path to redirect to (default: '')
  listen_ipv6 true  # listen on IPv6 address (default: true)
  default_server true  # include 'default_server' option in Nginx listen directive (default: false)
  secure true  # redirect to HTTPS (default: true)
  oscp_stapling true  # when secure is enabled, enable OSCP stapling (default: true)
  resolvers %w(8.8.8.8 1.1.1.1)  # when secure and oscp_stapling are enabled, set up resolvers (default: Google and CloudFlare DNS servers)
  resolver_valid 300  # cache name resolution results for the specified number of seconds (default: 600)
  resolver_timeout 5  # set timeout for the name resolution (default: 10)
  resolver_ipv6 true  # look up both IPv4 and IPv6 addresses while resolving (default: false)
  permanent false  # either 301 or 302 HTTP code (default: false)
  pass_request_uri true  # redirect with path and arguments (default: false)
  access_log_options 'off'  # Nginx access_log options string (default: 'combined', use 'off' to disable access_log)
  error_log_options 'crit'  # Nginx error_log level (default: 'error')
end

License

MIT @ Alexander Pyatkin

Dependent cookbooks

ngx ~> 2.2
tls ~> 4.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog
and this project adheres to Semantic Versioning.

[3.0.0] - 2020-09-28

Added

  • Introduced a new redirect_host resource property: vlt_provider.

Changed

  • Update tls dependency to version 4.

[2.1.1] - 2019-07-23

Added

  • Introduced a new redirect_host resource property: resolver_ipv6.

[2.1.0] - 2019-04-14

Changed

  • Make use of an updated version of tls cookbook.

[2.0.0] - 2019-04-10

Changed

  • Make use of ngx cookbook under the hood.

Removed

  • Deleted the default recipe.

[1.6.0] - 2019-01-10

Added

  • Introduced a new redirect_host resource property: path.
  • Introduced a new redirect_host resource property: hsts_max_age.
  • Introduced a new redirect_host resource property: oscp_stapling.
  • Introduced a new redirect_host resource property: resolvers.
  • Introduced a new redirect_host resource property: resolver_valid.
  • Introduced a new redirect_host resource property: resolver_timeout.

Removed

  • Deleted node['redirect']['hsts_max_age'].
  • Static CT entries will no longer be configured.

[1.5.1] - 2019-01-05

Fixed

  • Fixed the default recipe.

[1.5.0] - 2019-01-04

Removed

  • HPKP Header will no longer be set.
  • Deleted the redirect_host resource property: ec_certificates.

[1.4.3] - 2018-12-17

Added

  • Introduced a new redirect_host resource property: default_server.

[1.4.2] - 2018-12-13

Added

  • Introduced a new redirect_host resource property: access_log_options.
  • Introduced a new redirect_host resource property: error_log_options.

[1.4.1] - 2018-10-14

Fixed

  • Chef 14 compatibility.

[1.4.0] - 2018-08-17

Added

  • Create a CHANGELOG.

Collaborator Number Metric
            

3.0.0 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric
            

3.0.0 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file

Foodcritic Metric
            

3.0.0 failed this metric

FC066: Ensure chef_version is set in metadata: redirect/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: redirect/metadata.rb:1
Run with Foodcritic Version 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric
            

3.0.0 passed this metric

Testing File Metric
            

3.0.0 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file

Version Tag Metric
            

3.0.0 passed this metric