Brekeke SIP Server Wiki

Use Reverse Proxy Server for HTTP(S) or WS(S)

In the case reverse proxy server is configured to foworward HTTP(S) or WS(S) requests to Brekeke SIP Server, the following settings are needed.

 

Setp 1. Install Reverse Proxy Server.

Following the documents provided by the reverse proxy server vendor, install the  reverse proxy server.

Step 2. On the reverse proxy server, configure the following settings:

  • Forwards HTTP/HTTPS requests to your Brekeke SIP Server.
  • Forwards WS/WSS requests to your Brekeke SIP Server. (In the case Websocket is used for your services)
  • Optional: In the case that SSL is used, terminate SSL  (HTTPS or WSS), if it is required.

Step 3. On the reverse proxy server, set “X-Real-IP” header to inform Brekeke SIP Server of actual source IP addresses

 Sample : configuration file of Nginx.

##For HTTPS / WSS (443) To HTTP /WS (8080)########################
server{
    listen 443 ssl ;
    listen [::]:443 ssl;
    server_name    sample01.brekeke.com;
    ssl_protocols TLSv1.1 TLSv1.2;
    ssl_ciphers EECDH+AESGCM:EECDH+AES;
    ssl_ecdh_curve prime256v1;
    ssl_prefer_server_ciphers on;
    ssl_session_cache shared:SSL:10m;

    ## Certificate Keys------------------------------------
    ssl_certificate     /your_certificates_path/sample01.brekeke.com/fullchain.pem;
    ssl_certificate_key /your_certificates_path/sample01.brekeke.com/privkey.pem;
    keepalive_timeout    70;
    sendfile             on;
    client_max_body_size 0;
    }

     location / {
        proxy_pass  http://sample01:8080;
        proxy_http_version 1.1;
        proxy_set_header Upgrade             $http_upgrade;
        proxy_set_header Connection          $connection_upgrade;
        proxy_set_header Host                $host;
        proxy_set_header X-Real-IP           $remote_addr;
        proxy_set_header X-Forwarded-Host    $host;
        proxy_set_header X-Forwarded-Server  $host;
        proxy_set_header X-Forwarded-For     $proxy_add_x_forwarded_for;
        proxy_socket_keepalive on;
        proxy_connect_timeout 3600s;
        proxy_read_timeout 3600s;
        proxy_send_timeout 3600s;
    }
}

 

Step 4. On the Brekeke SIP Server, enter the reverse proxy information at the [Reverse Proxy] section.

[Block List] > [Reverse Proxy] section >>

 

 

Related Link:

 

Yes No
Suggest Edit