Webrdp and websockets not working with Nginx Reverse Proxy
Hi,
It seems like i am having some issues getting WebRDP and Websockets to work in general. I am using Nginx reverse proxy and i do not get notifications, chats do not work correctly most of the time and worst of all. WebRDP does not work at all.
it is not a major issue as i have Endpoint Central for RDP. But as it is rather unreliable, it would be great to have a second option!.
I was hoping someone might have figured it out and could spot the mistakes in my Nginx conf or maybe even just give a few performance tips for the config?
- #SDP WebRDP port = 8083
- #SDP Server = 10.100.200.200
- #SDP Server HTTPS Port = 8080
- ################################################################################
- #HTTP to HTTPS Forward
- server {
- listen 80;
- server_name servicedesk.domain.com;
- return 301 https://servicedesk.domain.com$request_uri;
- }
- ################################################################################
- #Vhost for port 443 HTTPS forward to port 8080
- server {
- listen 443 ssl http2;
- server_name servicedesk.domain.com;
- #SSL Config
- ssl_certificate /etc/ssl/domain.com.bundle.pem;
- ssl_certificate_key /etc/ssl/private.key;
- ssl_session_cache builtin:1000 shared:SSL:10m;
- ssl_session_timeout 10m;
- add_header Strict-Transport-Security "max-age=31536000; includeSubdomains";
- ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
- ssl_ciphers EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:ECDHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES128-SHA256:DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:AES256-GCM-SHA384:AES128-GCM-SHA256:AES256-SHA256:AES128-SHA256:AES256-SHA:AES128-SHA:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!MD5:!PSK:!RC4:!3DES:!CAMELLIA;
- ssl_prefer_server_ciphers on;
- #Additional settings
- client_max_body_size 50M;
- keepalive_timeout 70;
- port_in_redirect off;
- include /etc/nginx/mime.types;
- #Log Files for port 443
- access_log /var/log/nginx/sdp443.access.log;
- error_log /var/log/nginx/sdp443.error.log;
- #Location for port 443 forward to 8080
- location / {
- proxy_set_header Host $host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Real-Host $host;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header X-Forwarded-Proto $scheme;
- proxy_pass https://10.100.200.200:8080;
- proxy_read_timeout 120;
-
- # WebSocket support
- proxy_http_version 1.1;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "upgrade";
- }
- }
- ################################################################################
- #Vhost port 8083 for WebRDP
- server{
- listen 8083 ssl http2;
- server_name servicedesk.domain.com;
- #SSL Config for port 8083 WEBRDP
- ssl_certificate /etc/ssl/domain.com.bundle.pem;
- ssl_certificate_key /etc/ssl/private.key;
- ssl_session_timeout 20m;
- ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
- ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
- ssl_prefer_server_ciphers on;
- ssl_verify_client off;
- #Additional settings
- client_max_body_size 50M;
- keepalive_timeout 70;
- port_in_redirect off;
- include /etc/nginx/mime.types;
- #Location for 8083
- location /{
- proxy_http_version 1.1;
- proxy_pass https://10.100.200.200:8083;
- proxy_set_header Host $host;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "upgrade";
-
- }
- }
New to ADSelfService Plus?