This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Update, upgrade and install development tools: | |
| apt-get update | |
| apt-get -y upgrade | |
| apt-get -y install build-essential libssl-dev | |
| apt-get -y install git-core | |
| apt-get -y install autoconf bison build-essential libssl-dev\ | |
| libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev | |
| # Install rbenv | |
| git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Load balancer configuration | |
| upstream exampleApp { | |
| # Directs to the process with least number of connections. | |
| least_conn; | |
| # One failed response will take a server out of circulation for 20 seconds. | |
| server 127.0.0.1:10080 fail_timeout=20s; | |
| #server 127.0.0.1:10081 fail_timeout=20s; | |
| #server 127.0.0.1:10082 fail_timeout=20s; | |
| #server 127.0.0.1:10083 fail_timeout=20s; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # SSL self signed localhost for rails start to finish, no red warnings. | |
| # 1) Create your private key (any password will do, we remove it below) | |
| $ openssl genrsa -des3 -out server.orig.key 2048 | |
| # 2) Remove the password | |
| $ openssl rsa -in server.orig.key -out server.key |