Skip to content

Instantly share code, notes, and snippets.

@wmelton
Forked from jujhars13/proxy.nginx.conf
Created August 30, 2022 10:42
Show Gist options
  • Save wmelton/a3f1d7b570c06da191798ef018edaa2e to your computer and use it in GitHub Desktop.
Save wmelton/a3f1d7b570c06da191798ef018edaa2e to your computer and use it in GitHub Desktop.

Revisions

  1. @jujhars13 jujhars13 revised this gist Sep 11, 2017. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions proxy.nginx.conf
    Original 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;
    listen 3306;
    proxy_pass my-instance-rds.mysq-aws-account.eu-west-2.rds.amazonaws.com:3306;
    }
    }

  2. @jujhars13 jujhars13 created this gist Sep 8, 2017.
    22 changes: 22 additions & 0 deletions proxy.nginx.conf
    Original 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