Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags
    • Users
    • Groups
    1. Home
    2. Tags
    3. websocket
    Log in to post
    • All categories
    • lenovouser

      Using CloudFlare with NodeBB
      Tutorials • nodebb websocket websockets cloudflare proxy • • lenovouser

      80
      14
      Votes
      80
      Posts
      48121
      Views

      Jenkler

      I guess you have som configuration issues in nginx!

      Here is my config! Maybe this will help you 😉

      Server block

      server { listen 443 ssl; location @nodebb { proxy_pass http://www-nodebb-se:4567; } location ~ ^\/assets\/(.*) { root /server/nodejs/nodebb.se/www/; try_files /build/public/$1 /public/$1 @nodebb; } location /plugins/ { root /server/nodejs/nodebb.se/www/build/public/; try_files $uri @nodebb; } location / { proxy_pass http://www-nodebb-se:4567; } proxy_http_version 1.1; proxy_redirect off; proxy_set_header Connection "upgrade"; proxy_set_header Host $http_host; proxy_set_header Upgrade $http_upgrade; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-NginX-Proxy true; proxy_set_header X-Real-IP $remote_addr; server_name nodebb.se www.nodebb.se; ssl_certificate /server/nginx/ssl/nodebb.se.crt; ssl_certificate_key /server/nginx/ssl/nodebb.se.key; if ($host != 'www.nodebb.se') { rewrite ^/(.*)$ https://www.nodebb.se/$1 permanent; } }

      Global block

      ssl_ciphers EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5; ssl_prefer_server_ciphers on; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_session_cache shared:SSL:10m; ssl_session_timeout 10m;

      BTW, if someone know any tweeks please advice 😛 And plz explain why!

    • Doppy

      How communicate server with client[NodeBB plugin]
      NodeBB Plugins • plugin socket.io socket websocket websockets • • Doppy

      4
      0
      Votes
      4
      Posts
      2085
      Views

      yariplus

      what is the value of uid

    • T

      WebSocket connection to ... Error during WebSocket handshake: Unexpected response code: 400
      Technical Support • websocket error • • theflofly

      2
      0
      Votes
      2
      Posts
      5813
      Views

      phit

      post your apache/nginx conf

    • Hưng Thành Nguyá»…n

      Websocket with cloudflare problem
      General Discussion • websocket cloudflare • • Hưng Thành Nguyá»…n

      3
      0
      Votes
      3
      Posts
      2096
      Views

      Hưng Thành Nguyễn

      @hek Thanks, so remove it immediately 😢