Lukket

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;

}

Evner: Django, Linux, Nginx, Python, Web Sikkerhed

Se mere: 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

Om arbejdsgiveren:
( 0 bedømmelser ) United Kingdom

Projekt ID: #17163525

6 freelancere byder i gennemsnit $23 på dette job

$30 USD på 1 dag
(112 bedømmelser)
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 Flere

$27 USD på 1 dag
(29 bedømmelser)
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.

$25 USD på 1 dag
(39 bedømmelser)
4.6
$25 USD på 1 dag
(4 bedømmelser)
2.6
limedesigns

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

$20 USD på 1 dag
(1 bedømmelse)
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

$10 USD på 1 dag
(1 bedømmelse)
0.1