pe_nginx_cache

A Puppet module for configuring caching in pe-nginx
Nick Walker

Nick Walker

npwalker

6,197 downloads

5,841 latest version

4.3 quality score

Version information

  • 0.6.0 (latest)
  • 0.5.0
released Jul 3rd 2019
This version is compatible with:
  • Puppet Enterprise >= 2015.2.0
  • RedHat
    ,
    CentOS
    ,
    OracleLinux
    ,
    Scientific
    ,
    Debian
    ,
    Ubuntu

Start using this module

Documentation

npwalker/pe_nginx_cache — version 0.6.0 Jul 3rd 2019

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.