Kapalı

Websockets configuration with nginx and SSL [Django]

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;

}

Beceriler: Django, Linux, Nginx, Python

Daha fazlasını gör: webpage redirect loop nginx ssl, varnish nginx ssl, 502 bad gateway nginx connection refused connecting upstream, 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, nginx twisted django, centos nginx ssl, configuration vpn ssl router 1841

İşveren Hakkında:
( 0 değerlendirme ) United Kingdom

Proje NO: #17162128

Bu iş için 11 freelancer ortalamada $143 teklif veriyor

voidead

Hi i am linux administrator and having sound knowledge of nginx to fix websocket configuration problem as soon as possible. I am having 7+ year of working experience in this field. see my web as well : [login to view URL] Daha Fazla

in %bids___i_period_sub_35% gün içinde99%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(109 Değerlendirme)
5.5
chiragdosi

Dear Project Owner, I am Red Hat Certified Linux Engineer having 7+ year of experience in Managing Core Server | Dedicated Server | VPS Server | Server Security | Server Optimization | Backup and Restoration process Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(27 Değerlendirme)
4.7
in %bids___i_period_sub_35% gün içinde100%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(24 Değerlendirme)
4.2
in %bids___i_period_sub_35% gün içinde250%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(6 Değerlendirme)
3.3
Angle14

Hello, I will audit your server, find loop holes and will fix the error. I will reinstall SSL if needed. I have more than 3 years experience in the same. Security ( SSL certificate ) - - CSF Firewall (Best Lin Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(2 Değerlendirme)
2.4
SilentStarMagic

how are you,sir? I am a professional developer who has rich experience in this field. If you contact me, you and i will all be happy. Thank you for your reply in advance. Websockets configuration with nginx and SSL [D Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(2 Değerlendirme)
2.0
alexwmsoft

Hi, I am an experienced web developer, and I have developed many websites using code django MVC framework. I also have many experience Linux and Nginx. I read your job description carefully and it's no problem for Daha Fazla

in %bids___i_period_sub_35% gün içinde150%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(1 Yorum)
2.0
shiekhsalman08

=== WSGI doesn't support Web sockets === === need to use daphne === or === need to use django-channels-ssl if you are using django-channels === To be honest i am not 100% sure whether i can solve it or not. B Daha Fazla

in %bids___i_period_sub_35% gün içinde277%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(7 Değerlendirme)
2.2
Sgdojob

I have 6+ years of experience in web server like apache, nginx, jetty, jboss etc. I will help you in fixing socket failed error. I will charge less and work as soon as possible but I guarantee quality work. Hope Daha Fazla

in %bids___i_period_sub_35% gün içinde40%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(2 Değerlendirme)
1.0
dronex

Hello! Your Certbot write that need to listen 443, but your application still try to get on 8765 port.

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(0 Değerlendirme)
0.0
unixworld

Hello! Ready to cooperate in a broad range of tasks. Unix/Linux SysAdmin with more 20 years experience Please, look my portfolio. Regards, Alexander

in %bids___i_period_sub_35% gün içinde166%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(0 Değerlendirme)
0.0