-
-
Notifications
You must be signed in to change notification settings - Fork 872
Closed
Labels
needs-feedbackFurther information is requestedFurther information is requested
Description
I have this code:
# class: test::nginx
class test::nginx {
# create directories here if needed
# $dirs = ['/dir1', '/dir1/dir2, '/dir3',]
#
# file { $dirs:
# ensure => directory,
# mode => '0755',
# }
class { '::nginx':
proxy_cache_path => '/data/nginx/cache keys_zone=one:10m',
}
# maybe this resource is not necessary
nginx::resource::vhost { 'test2.local':
ensure => present,
www_root => '/var/www',
}
nginx::resource::location { 'cached':
ensure => present,
www_root => 'var/www',
vhost => 'test2.local',
location => '/cached',
# 'one' comes from proxy path, most likely
proxy_cache => 'one',
}
}
But in the generated sites-enabled/test2.local.conf there is no:
server {
proxy_cache one;
as decribed here : http://nginx.com/resources/admin-guide/caching/
Am I missing something?
Metadata
Metadata
Assignees
Labels
needs-feedbackFurther information is requestedFurther information is requested