• Home
  • Categories
  • Recent
  • Popular
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Default
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Quartz
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Slate
  • Solar
  • Superhero
  • Vapor
Collapse

Community

HasanCH

HasanC

@HasanC
About
Posts
4
Topics
2
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

    RE: socket.io connection error 503
  • HasanCH HasanC

    Ok, i think nobody will answer that question.

    After dig it i realised that the issue is about apache mod_proxy_wstunnel. When nodebb works on TCP port there is no problem but on unix socket it seems that mod_proxy_wstunnel is not meant to work with Unix domain sockets.

    For example;
    ProxyPass "/ws" "unix:/tmp/nodebb.sock|ws://127.0.0.1/" not work.

    Best Regards,


  • socket.io connection error 503
  • HasanCH HasanC

    Hello,

    I get "can’t establish a connection to the server at wss://forum.mydomain.com/socket.io/?EIO=3&tra...." error.
    There is something wrong on my proxy settings.

    Could anybody help me about that issue?
    Thanks.

    *nodebb working on unix socket,

    {
        "url": "https://forum.mydomain.com/",
        "port": "/tmp/nodebb.sock",
        "secret": "145a922f----------------------",
        "database": "redis",
        "redis": {
            "host": "/tmp/redis.sock",
            "password": "longlongpass",
            "database": "0"
        }
    }
    
    
    ProxyRequests off
    
    SSLProxyEngine On
    RequestHeader set X-Forwarded-Proto "https"
    RewriteEngine On
    RewriteCond %{REQUEST_URI}  ^/socket.io            [NC]
    RewriteCond %{QUERY_STRING} transport=websocket    [NC]
    RewriteRule /(.*)           ws://127.0.0.1:4567/$1 [P,L]
    ProxyPass / unix:/tmp/nodebb.sock|http://127.0.0.1/
    ProxyPassReverse / unix:/tmp/nodebb.sock|http://127.0.0.1/
    

  • RE: fresh install after system reboot nodebb blank page
  • HasanCH HasanC

    Yes, you are right, thank you. My redis.conf file was broken. As usual, at the end of the day redis error finds you ! Finally setup is done.

    My nodebb setup experience = Hey nodebb ! if you want to grow you have to support MySQL. It isn't important how fast redis is because it does not give confidence any time.

    Best Regards,


  • fresh install after system reboot nodebb blank page
  • HasanCH HasanC

    Hello,

    I managed to install nodebb with below configurations and it is working like a charm now. But if i REBOOT my vps, when i go to my forum page i can't see default categories anymore there are only nodebb logo and login and register buttons but they don't work also.

    *nodebb working on unix socket,
    *redis server working on unix socket,
    */opt/nodebb chowned by nodebb user,
    *i started nodebb by nodebb user, not as root with ./nodebb start
    *i didn't implement any upstart, forever or Supervisor rules
    *i didn't add nodebb to systemd for auto-start (/lib/systemd/system/nodebb.service)

    my config.json;

    {
        "url": "https://forum.mydomain.com/",
        "port": "/tmp/nodebb.sock",
        "secret": "145a922f----------------------",
        "database": "redis",
        "redis": {
            "host": "/tmp/redis.sock",
            "password": "longlongpass",
            "database": "0"
        }
    }
    
    

    My proxy settings; maybe this helps someone | apache 2.4+ | while nodebb on unix domain socket.

    ProxyRequests off
    
    SSLProxyEngine On
    RequestHeader set X-Forwarded-Proto "https"
    RewriteEngine On
    RewriteCond %{REQUEST_URI}  ^/socket.io            [NC]
    RewriteCond %{QUERY_STRING} transport=websocket    [NC]
    RewriteRule /(.*)           ws://127.0.0.1:4567/$1 [P,L]
    ProxyPass / unix:/tmp/nodebb.sock|http://127.0.0.1/
    ProxyPassReverse / unix:/tmp/nodebb.sock|http://127.0.0.1/
    

    Thanks in advance.

  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
  • Login

  • Don't have an account? Register

  • Login or register to search.