Închis

Websockets configuration with nginx and SSL

After adding the SSL certificates successfully, we are getting a timeout error on the browser.

See here screenshot of the browser's log:

[login to view URL]

Has anyone experienced anything similar? Please, let me know if you need more details of the set up.

See below our nginx configuration

listen 443 ssl; # managed by Certbot

ssl_certificate /etc/letsencrypt/live/casista.com-0001/[login to view URL]; # managed by Certbot

ssl_certificate_key /etc/letsencrypt/live/casista.com-0001/[login to view URL]; # managed by Certbot

include /etc/letsencrypt/[login to view URL]; # managed by Certbot

ssl_dhparam /etc/letsencrypt/[login to view URL]; # managed by Certbot

upstream chatserver {

server [login to view URL];

}

client_max_body_size 4G;

access_log /var/log/nginx/[login to view URL];

error_log /var/log/nginx/[login to view URL];

location = /[login to view URL] { access_log off; log_not_found off; }

location / {

proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

proxy_set_header X-Forwarded-Proto https;

proxy_set_header Host $host;

proxy_redirect off;

if (!-f $request_filename) {

proxy_pass http://unix:/home/ubuntu/mywasi-root/mywasi/[login to view URL];

break;

}

# include proxy_params;

location /ws {

# proxy_pass [login to view URL];

proxy_pass http://chatserver;

# proxy_pass http://localhost:8765;

proxy_connect_timeout 7d;

proxy_read_timeout 7d;

proxy_send_timeout 7d;

proxy_http_version 1.1;

proxy_set_header Upgrade $http_upgrade;

proxy_set_header Connection "upgrade";

}

auth_basic "Restricted content";

auth_basic_user_file /etc/nginx/.htpasswd;

}

location /static/ {

alias /home/ubuntu/mywasi-root/mywasi/staticfiles/;

autoindex off;

}

location /media/ {

alias /home/ubuntu/mywasi-root/mywasi/media/;

autoindex off;

}

Aptitudini: Django, Linux, Nginx, Python, Securitate web

Vezi mai multe: nginx websocket 501, nginx websocket timeout, nginx websocket over ssl, nginx websocket 301, nginx wss, nginx websocket 502, nginx websocket 101, nginx websocket module, webpage redirect loop nginx ssl, varnish nginx ssl, nginx ssl configuration, nginx ssl loop, nginx ssl subdomain, nginx ssl, virtualmin nginx ssl website, magento nginx ssl, webmin virtualmin nginx webmin virtualmin nginx ssl, configuration xampp ssl, phpmyadmin configuration nginx centos, vps configuration nginx php mysql

Despre angajator:
( 0 recenzii ) United Kingdom

ID Proiect: #17163525

6 freelanceri licitează în medie 23$ pentru acest proiect

%bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD în 1 zi
(112 recenzii)
5.7
NehaRandhawa05

Expert in server management VPS, Dedicated, AWS, SSL Certificate, DNS, Centos, Cpanel/WHM/Plesk, Web panel, Apache Debian, Nginx, Ubuntu Power MTA, Interspire, Expert in Migration services I have 6+ years experience Mai multe

%bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD în 1 zi
(29 recenzii)
4.7
infihost

Hi, We will check complete configuration of SSL certificate installed and will also fix all the issue on the server. Thank you.

%bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD în 1 zi
(39 recenzii)
4.6
%bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD în 1 zi
(4 recenzii)
2.6
limedesigns

Hello. I can fix the issue. Please contact me over live chat. ready to start instantly. thankyou. .

%bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD în 1 zi
(1 părere)
0.5
onkarredhat

I can easily do this task as my technical skills as well as good command over language makes me the best suitable candidate for this job

%bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD în 1 zi
(1 părere)
0.1