Hi All,
I installed the SpeckleServer 1 in a Ubuntu 20.04.1 with NGINX 1.18.0 as HTTPS proxy.
If I connect the browser to the URL https://speckle.mydomain.com all works fine but unfortunately, the Grasshopper tools still give me the error websocket-disconnected.
I think that the problem is on the NGINX configuration but I can’t understand where is the error. My conf file is the following
server {
listen 80;
location / {
return 301 https://$host$request_uri;
}
}
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
upstream websocket {
server 127.0.0.1:3000;
}
server {
# SSL configuration
listen 443 ssl;
server_name osm.maffeis.it;
ssl_password_file /etc/ssl/private/MyDomain_com.pass;
ssl_certificate /etc/ssl/certs/MyDomain_com.pem;
ssl_certificate_key /etc/ssl/private/MyDomain_com.key;
ssl_dhparam /etc/nginx/dhparam.pem ;
ssl_ciphers "ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:RSA+AESGCM:RSA+AES:!EXPORT:!RC4:!aNULL:!MD5:!DSS:!eNULL:!DES:!3DES";
ssl_prefer_server_ciphers on;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
gzip on;
gzip_proxied any;
gzip_types text/plain text/xml text/css application/x-javascript application/json;
gzip_vary on;
gzip_disable "MSIE [1-6]\.(?!.*SV1)";
error_log /var/log/nginx/speckle.log debug;
location / {
# http trafic
proxy_pass http://127.0.0.1:3000;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass_request_headers on;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
}
Can someone help me, please?
Thanks in advance
Giorgio