When I check the console, it show like the following
Failed to load resource: the server responded with a status of 403 ()
/socket.io/?EIO=3&transport=polling&t=L-PoHUg
When I check the console, it show like the following
Failed to load resource: the server responded with a status of 403 ()
/socket.io/?EIO=3&transport=polling&t=L-PoHUg
The following is my nodebb config.
{
"url": "https://www.ygnconnect.com",
"secret": "839fa2da-d222-4d68-94a0-a9e07efe2ef5",
"database": "mongo",
"mongo": {
"host": "127.0.0.1",
"port": "27017",
"username": "user",
"password": "pass",
"database": "db"
}
}
And the following is my nginx config
### redirects http requests to https
server {
listen 80;
server_name ygnconnect.com www.ygnconnect.com;
return 301 https://www.ygnconnect.com$request_uri;
return 302 https://$server_name$request_uri;
}
### the https server
server {
# listen on ssl, deliver with speedy if possible
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name ygnconnect.com www.ygnconnect.com;
if ($host = 'ygnconnect.com' ) {
rewrite ^ https://www.ygnconnect.com$request_uri;
}
# change these paths!
ssl_certificate /etc/letsencrypt/live/www.ygnconnect.com/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/www.ygnconnect.com/privkey.pem; # managed by Certbot
# enables all versions of TLS, but not SSLv2 or 3 which are weak and now deprecated.
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';
location ~ /.well-known {
allow all;
}
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
proxy_pass https://127.0.0.1:4567;
proxy_redirect off;
# Socket.IO Support
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
Is there any idea why I am in trouble?