https://github.com/npwalker/pe_nginx_cache
A Puppet module for configuring caching in pe-nginx
https://github.com/npwalker/pe_nginx_cache
nginx-cache pe-nginx performance puppet-enterprise
Last synced: 2 months ago
JSON representation
A Puppet module for configuring caching in pe-nginx
- Host: GitHub
- URL: https://github.com/npwalker/pe_nginx_cache
- Owner: npwalker
- License: apache-2.0
- Created: 2017-01-18T22:20:38.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-01-20T15:25:04.000Z (over 3 years ago)
- Last Synced: 2025-02-17T20:19:55.412Z (3 months ago)
- Topics: nginx-cache, pe-nginx, performance, puppet-enterprise
- Language: Puppet
- Size: 14.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.
2. ```
pe_nginx_cache::cache_endpoint { '/path/to/endpoint' :
proxy_cache_valid => '200 '
}
```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.