1
0
Fork 0

Add nginx proxy

This commit is contained in:
Andrew Tomaka 2014-04-01 17:50:48 -04:00
parent 203ed07442
commit 435e7e755f
1 changed files with 8 additions and 0 deletions

View File

@ -29,6 +29,14 @@ class { '::mysql::server': }
# install nginx
class { 'nginx': }
# configure nginx proxy
nginx::resource::upstream { 'welcome_app':
members => ['localhost:3000'],
}
nginx::resource::vhost { 'final.atomaka.com':
proxy => 'http://welcome_app',
}
# install rails
package { 'rails':
provider => 'gem',