Navigation

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

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

      80
      14
      Votes
      80
      Posts
      47923
      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!

    • A

      SOLVED Reroute socket.io | Cloudflare
      Technical Support • cloudflare reroute rerouting subdomain websockets • • Andi

      12
      0
      Votes
      12
      Posts
      6271
      Views

      lenovouser

      @Andi no problem, happy to help 😃

    • A

      socket.io Bad Gateway - fix?
      Technical Support • 502 bad gateway cloudflare nginx socket.io • • Andi

      7
      0
      Votes
      7
      Posts
      3676
      Views

      S

      Try removing the SPDY support and see if it works. I had to disable SPDY with SSL to get it to towork.

    • TheBronx

      hundreds of polling requests
      NodeBB Development • cloudflare performance polling request • • TheBronx

      51
      2
      Votes
      51
      Posts
      26826
      Views

      markkus

      Updated to master & works like a charm ;).

    • scottalanmiller

      NodeBB Behind CloudFlare
      General Discussion • cdn cloudflare • • scottalanmiller

      15
      0
      Votes
      15
      Posts
      5972
      Views

      X

      @markkus What cloudflare package do you have? Also can you link your forum 😛

    • TheBronx

      Alternative websocket address (to bypass CloudFlare)
      General Discussion • cloudflare websockets • • TheBronx

      2
      0
      Votes
      2
      Posts
      2347
      Views

      baris

      We just removed it from the ACP, it can be put in config.json now in a socket.io block.

      https://docs.nodebb.org/en/latest/configuring/config.html

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

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

      3
      0
      Votes
      3
      Posts
      2094
      Views

      Hưng Thành Nguyễn

      @hek Thanks, so remove it immediately 😢