Nginx Configuration
-
Hello there,
I recently installed nodebb and nginx on Ubuntu Server 18.04. Gotta say I really like this new forums system. However I'm running into some difficulties.
I have already setup the server block for nginx. In my config.json file the url is "https://example.com". In my nginx server block I set the server_name to example.com and www.example.com. I can access forums with both urls but through www.example.com I keep getting an error saying "Looks like your connection to NodeBB was lost, please wait while we try to reconnect.". I tried making a separate server block for www.example.com but same issue. Could someone tell how I can use both domain names and what I have to config?Thank you
-
The following FAQ answers your questions:
[FAQ] Websockets not working due to misconfigured origins
This FAQ is applicable for the following situations: You're receiving the following error in the Javascript console: WebSocket connection to 'wss:///socket...
NodeBB Community (community.nodebb.org)
-
@Ahmed-Nadeem trailing commas are not allowed in JSON. The implication in that example is that the
"socket.io"
section is added at the end.