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

RSS

redirect (18) Versions 4.0.0

Create Nginx host to redirect to another website

Berkshelf
Policyfile
Knife
cookbook 'redirect', '~> 4.0.0'
cookbook 'redirect', '~> 4.0.0', :supermarket
knife supermarket install redirect
knife supermarket download redirect
README
Dependencies
Changelog
Quality -%

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)
  ocsp_stapling true  # when secure is enabled, enable OCSP stapling (default: true)
  resolvers %w(8.8.8.8 1.1.1.1)  # when secure and ocsp_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

tls ~> 4.1
ngx ~> 2.2

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.

[4.0.0] - 2021-02-05

Changed

  • Renamed redirect_host resource property oscp_stapling to ocsp_stapling.

[3.1.0] - 2020-11-11

Added

  • Introduced a new redirect_host resource property: vlt_format.

Changed

  • Update tls dependency to version 4.1.

[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.

No quality metric results found