-1

I would like to have both mysql and mongodb accessible from outside using a proxy.

stream {
        server {
                listen 3308;
                proxy_connect_timeout 5s;
                proxy_timeout 20s;
                proxy_pass stream_mysql;

        upstream stream_mysql {
                server localhost:3306;
        }

        server {
                listen 27018;
                proxy_connect_timeout 5s;
                proxy_timeout 20s;
                proxy_pass stream_mongo;
        }

        upstream stream_mongo {

  • Yes, it will probably work if you fix the blatant typos. – Michael Hampton Jun 7 at 3:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.