目前我有一个使用此配置的代理设置,我想使用https://github.com/puppetlabs/puppetlabs-nginx进行设置
upstream unicorn {
server unix:/home/vagrant/website/tmp/sockets/unicorn.sock fail_timeout=0;
}
server {
listen 80 default;
root /home/vagrant/website/public;
try_files $uri/index.html $uri @unicorn;
location @unicorn {
proxy_pass http://unicorn;
}
error_page 500 502 503 504 /500.html;
}
到目前为止,我有:
node default {
class { 'nginx': }
nginx::resource::upstream { 'unicorn':
ensure => present,
members => [
'unix:/home/vagrant/website/tmp/sockets/unicorn.sock fail_timeout=0;'
],
}
}
但我不确定如何添加服务器部分的详细信息。