CWP Opensll ile oluşturduğum subdomain üzerinden node.js p2p sistem yapmak istediğimde HTTPS başarılı şekilde çalışırken ws to wss yaptığımda malesef veri akışı sağlayamıyorum "failed: Error during WebSocket handshake: Unexpected response 400" hatası almaktayım yaptığım internetteki araştırmlada nginx port yapılandırmasında bir çok açıklama ve yöntem denedim ama bir sonuç elde edemedim. denediğim metotlar dosya içerisinde;
/*****
proxy_pass http://ipadresi:8080;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
***/
server {
listen <İpadresi>:443;
index index.html index.htm;
server_name _;
access_log /usr/local/apache/domlogs/vserver.<domain>.com.bytes bytes;
access_log /usr/local/apache/domlogs/vserver.<domain>.com.log combined;
error_log /usr/local/apache/domlogs/vserver.<domain>.com.error.log error;
location / {
proxy_pass http://localhost:8080;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
}
location ~ /\.ht {deny all;}
location ~ /\.svn/ {deny all;}
location ~ /\.git/ {deny all;}
location ~ /\.hg/ {deny all;}
location ~ /\.bzr/ {deny all;}
disable_symlinks if_not_owner from=/home/kullanıcı/public_html;
location /.well-known/acme-challenge {
default_type "text/plain";
alias /usr/local/apache/autossl_tmp/.well-known/acme-challenge;
}
}ki bunun içerisinde key dosya yollarını benzer metotlar denedim ancak hiç bir şekilde sonuca erişimsağlayamadım bu konu hakkında bilgi sahibi olan bir arkadaş varmıdır
Nginx ters proksi ile ki node js olması sebebi ile https yapabilirken wss veri aktarımı nasıl sağlayabilirim