- 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:
Kind regards,
DIV-OPN
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