Add nginx proxy
This commit is contained in:
parent
203ed07442
commit
435e7e755f
1 changed files with 8 additions and 0 deletions
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue