Forge Home

pe_nginx_cache

A Puppet module for configuring caching in pe-nginx

7,666 downloads

7,240 latest version

4.3 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 0.6.0 (latest)
  • 0.5.0
released Jan 25th 2017
This version is compatible with:
  • Puppet Enterprise >= 2015.2.0
  • , , , , ,

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'npwalker-pe_nginx_cache', '0.6.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add npwalker-pe_nginx_cache
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install npwalker-pe_nginx_cache --version 0.6.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

npwalker/pe_nginx_cache — version 0.6.0 Jan 25th 2017

How to use

In order to setup caching for different console middleware endpoints you need two things.

  1. include pe_nginx_cache::proxy_cache_path

This configures nginx's cache on disk.

  1.   proxy_cache_valid => '200 <duration>'
    }```
    

This defined type configures multiple settings in nginx that enable caching for that endpoint. You can find an endpoint you want to cache by looking in chrome dev tools. You likely want to change the proxy_cache_valid setting which is what determines how long the endpoint data will be cached for. The default is 5m but you may want longer or shorter depending on the endpoint.

Examples

Look in the examples directory.