vhost.pp 342 B

12345678910111213141516
  1. include nginx
  2. nginx::resource::vhost { 'test.local test':
  3. ensure => present,
  4. ipv6_enable => true,
  5. proxy => 'http://proxypass',
  6. }
  7. nginx::resource::vhost { 'test.local:8080':
  8. ensure => present,
  9. listen_port => 8080,
  10. server_name => ['test.local test'],
  11. ipv6_enable => true,
  12. proxy => 'http://proxypass',
  13. }