Reverse proxy for http (5000) and https (5001)

Status
Not open for further replies.

DIV-OPN

Joined
Jul 25, 2018
Messages
1
Reaction score
0
Hi all,

I am trying to get the a reverse proxy running in front of the 3CX nginx server. It seems to be working but I have problems with the presence and the contact list. I have already tried to debug with wireshark but I couldn't find any issues. Does anybody have a reverse proxy running for the http and https port? Am I missing something obvious?

This is the current reverse proxy config:

Code:
# phones
map $http_upgrade $connection_upgrade {
        default upgrade;
        ''      close;
}

server {
        listen 80;
        listen 5000;
        server_name REMOVED;

        return 301 https://$host$request_uri;
}

server {
        listen 5001 ssl;
        server_name REMOVED;

        ssl_certificate           /etc/letsencrypt/live/REMOVED/fullchain.pem;
        ssl_certificate_key       /etc/letsencrypt/live/REMOVED/privkey.pem;

        ssl_session_cache  builtin:1000  shared:SSL:10m;
        ssl_protocols  TLSv1 TLSv1.1 TLSv1.2;
        ssl_ciphers HIGH:!aNULL:!eNULL:!EXPORT:!CAMELLIA:!DES:!MD5:!PSK:!RC4;
        ssl_prefer_server_ciphers on;

        include /etc/nginx/letsencrypt.conf;

        return 301 https://$host$request_uri;
}

server {
        listen 443 ssl;
        server_name REMOVED;

        ssl_certificate           /etc/letsencrypt/live/REMOVED/fullchain.pem;
        ssl_certificate_key       /etc/letsencrypt/live/REMOVED/privkey.pem;

        ssl_session_cache  builtin:1000  shared:SSL:10m;
        ssl_protocols  TLSv1 TLSv1.1 TLSv1.2;
        ssl_ciphers HIGH:!aNULL:!eNULL:!EXPORT:!CAMELLIA:!DES:!MD5:!PSK:!RC4;
        ssl_prefer_server_ciphers on;

        include /etc/nginx/letsencrypt.conf;

        location / {
                proxy_set_header        Host $host;
                proxy_set_header        Upgrade $http_upgrade;
                proxy_set_header        Connection $connection_upgrade;
                proxy_set_header        X-Real-IP $remote_addr;
                proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_set_header        X-Forwarded-Proto $scheme;
                proxy_pass              http://10.10.10.15:5000;
        }
}

Kind regards,
DIV-OPN
 
Hi there,

I am currently facing the same issue. Any luck from your side ? from what I know, 3CX uses web sockets to make the web app a real time one. Try to adjust your nginx so it can handle the websocket protocole. Moreover, try to refer to the Nginx code :) ... I really hope that I can make it work behind my reverse proxy :(

Keep me updated if you found a solution.

Cheers.
 
Status
Not open for further replies.

Forum statistics

Threads
111,889
Messages
589,580
Members
164,755
Latest member
adrhoades