Netty로 Nginx reverse proxy 처럼 동작하는 것을 만들어 보고 싶은데요...

460 views
Skip to first unread message

Jeongtae Park

unread,
May 23, 2017, 8:59:31 AM5/23/17
to Netty Korean User Group
안녕하세요.

기존에 Nginx Reverse proxy를 프로젝트에 사용하고 있는데요.

이러한 기능을 Netty로 만들어 보고 싶은데요.

시작점을 어디서 찾으면 될까요?

기본 원리나 예제 등 도움을 요청 드립니다.

항상 감사 드립니다. ^^



이희승 (Trustin Lee)

unread,
May 23, 2017, 9:13:48 AM5/23/17
to nett...@googlegroups.com
안녕하세요.

LittleProxy 프로젝트를 참고해 보시는 건 어떨까요?

이희승 드림

--
이 메일은 Google 그룹스 'Netty Korean User Group' 그룹에 가입한 분들에게 전송되는 메시지입니다.
이 그룹에서 탈퇴하고 더 이상 이메일을 받지 않으려면 netty-ko+u...@googlegroups.com에 이메일을 보내세요.
더 많은 옵션을 보려면 https://groups.google.com/d/optout을(를) 방문하세요.

Jeongtae Park

unread,
May 25, 2017, 10:47:20 AM5/25/17
to Netty Korean User Group
답변 감사드립니다.

알려주신 link를 확인 해 보았는데요.
제가 찾고 있는게 맞는지 확신이 들지 않아서 문의를 드리고자 합니다.

제가 설정한 nginx.conf 설정 파일은 아래와 같은데요.
알려주신 link로 NginX의 stream 블럭과 같이 사용이 가능한가요?
(nginx.conf의 http 블럭에는 리버스 프록시로 설정하지 않았음)

감사합니다.


stream
{

    log_format  streamlog  '[$time_local] $remote_addr "$upstream_addr" ';

    access_log  /var/log/nginx/mystream.access.log streamlog;
    error_log /var/log/nginx/mystream.error.log;

        upstream mqtt_tls_proxy {
                server activemq:22993;
...
        }
        server {
                listen 22994 ssl;
                proxy_pass mqtt_tls_proxy;

            ssl_certificate       /etc/pki/tls/certs/cert.pem;
            ssl_certificate_key   /etc/pki/tls/certs/key.pem;
              ssl_protocols         SSLv3 TLSv1 TLSv1.1 TLSv1.2;
              ssl_ciphers           HIGH:!aNULL:!MD5;
             ssl_session_cache     shared:SSL:20m;
            ssl_session_timeout   1h;
             ssl_handshake_timeout 10s;
        }
        upstream openwire_proxy {
                server activemq:61616;
...
        }
        server {
                listen 61616;
                proxy_pass openwire_proxy;
        }

        upstream http_tls_proxy {
                 server httpserver:8861;
...
        }
        server {
                listen 8862 ssl;
                proxy_pass http_tls_proxy;

            ssl_certificate       /etc/pki/tls/certs/cert.pem;
            ssl_certificate_key   /etc/pki/tls/certs/key.pem;
            ssl_protocols         SSLv3 TLSv1 TLSv1.1 TLSv1.2;
            ssl_ciphers           HIGH:!aNULL:!MD5;
            ssl_session_cache     shared:SSL:20m;
            ssl_session_timeout   1h;
            ssl_handshake_timeout 10s;
        }

}







2017년 5월 23일 화요일 오후 10시 13분 48초 UTC+9, 이희승 (Trustin Lee) 님의 말:

이희승 (Trustin Lee)

unread,
May 25, 2017, 2:56:21 PM5/25/17
to nett...@googlegroups.com
거기까지는 잘 모르겠습니다. 해당 프로젝트를 통해 Netty를 이용한 HTTP 프록시 서버의 구현이 실제로 어떻게 이루어지는지 코드 수준에서 참고하시는 정도로 생각하시면 좋을 것 같습니다.
Reply all
Reply to author
Forward
0 new messages