-
-
Save wmelton/a3f1d7b570c06da191798ef018edaa2e to your computer and use it in GitHub Desktop.
Revisions
-
jujhars13 revised this gist
Sep 11, 2017 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -14,8 +14,8 @@ events { stream { server { listen 3306; proxy_pass my-instance-rds.mysq-aws-account.eu-west-2.rds.amazonaws.com:3306; } } -
jujhars13 created this gist
Sep 8, 2017 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,22 @@ #sudo wget http://nginx.org/download/nginx-1.9.12.tar.gz #sudo tar -xvzf nginx-1.9.12.tar.gz #cd nginx-1.9.12 #sudo apt-get install -y build-essential libpcre3 libpcre3-dev zlib1g-dev #sudo ./configure --with-stream && sudo make && sudo make install # /usr/local/nginx/conf/nginx.conf - NGINX configuration file worker_processes 1; events { worker_connections 1024; } stream { server { listen 3306; proxy_pass my-instance-rds.mysq-aws-account.eu-west-2.rds.amazonaws.com:3306; } } /usr/local/nginx/sbin/nginx