Ok, got it working. I had to change:
location /forum {
To:
location /forum/ {
The extra slash on the end makes all the difference.
Ok, got it working. I had to change:
location /forum {
To:
location /forum/ {
The extra slash on the end makes all the difference.
@frissdiegurke said:
In addition to @julians fix:
@willendure said:
"url": "http://localhost:4567/forum"
It's supposed to be the URL to access your board from outside.
http://example.com/forum
This probably causes some broken links.
I replaced localhost with the ip address that I am testing this on, made no difference.
I think I may need to look into nginx docs in more detail to see how to pass through a particular url.
@julian said:
Can you try removing "/forum" from
proxy_pass
?
Tried that and it seems to make no difference at all.
I should add, the above set up seems to give me the home page, but without its CSS, and lots of broken links.
My NodeBB config contains:
"url": "http://localhost:4567/forum"
And My nginx config is:
server {
listen 80;
server_name thesett.com;
location /forum {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
proxy_pass http://nodebb:4567/forum/;
proxy_redirect off;
# Socket.IO Support
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
I am doing this because I would like the forums to appear under /forum relative to the site top-level, rather than as the top-level on a sub-domain.
Is this possible to do, and how do I set it up? Thanks
To close this off, I pulled the latest from GitHub and tried it with the latest release of redis that is available on Docker Hub (3.0.8?). That combination seem to get on just fine.
My problem looks to be the same as:
I rolled back to mongo 3.0.8 and that seems to have fixed it for now.
NodeBB Community (community.nodebb.org)
Which was cured by using Mongo 3.0.8, so I will try that.
@pichalite said:
@willendure what's the out put of these...?
git rev-parse HEAD
da78e4f02b080388d7efe75f84f9621f8cd053cb
npm ls nodebb-theme-persona
[email protected] /home/rupert/sc/github/nodebb/NodeBB
└── (empty)
I take it then that v0.9.3 is considered stable?
Yes, there is this error:
11/1 22:36 [22800] - error: TypeError: Converting circular structure to JSON
at Object.stringify (native)
at ServerResponse.json (/home/rupert/sc/github/nodebb/NodeBB/node_modules/express/lib/response.js:242:19)
at ServerResponse.res.render (/home/rupert/sc/github/nodebb/NodeBB/src/middleware/render.js:42:16)
at /home/rupert/sc/github/nodebb/NodeBB/src/controllers/topics.js:287:8
at fireFilterHook (/home/rupert/sc/github/nodebb/NodeBB/src/plugins/hooks.js:86:11)
at Object.Plugins.fireHook (/home/rupert/sc/github/nodebb/NodeBB/src/plugins/hooks.js:70:5)
at /home/rupert/sc/github/nodebb/NodeBB/src/controllers/topics.js:283:11
at /home/rupert/sc/github/nodebb/NodeBB/node_modules/async/lib/async.js:52:16
at Object._onImmediate (/home/rupert/sc/github/nodebb/NodeBB/node_modules/async/lib/async.js:1201:34)
at processImmediate [as _immediateCallback] (timers.js:336:15)
TypeError: Converting circular structure to JSON
at Object.stringify (native)
at ServerResponse.json (/home/rupert/sc/github/nodebb/NodeBB/node_modules/express/lib/response.js:242:19)
at ServerResponse.res.render (/home/rupert/sc/github/nodebb/NodeBB/src/middleware/render.js:42:16)
at /home/rupert/sc/github/nodebb/NodeBB/src/controllers/topics.js:287:8
at fireFilterHook (/home/rupert/sc/github/nodebb/NodeBB/src/plugins/hooks.js:86:11)
at Object.Plugins.fireHook (/home/rupert/sc/github/nodebb/NodeBB/src/plugins/hooks.js:70:5)
at /home/rupert/sc/github/nodebb/NodeBB/src/controllers/topics.js:283:11
at /home/rupert/sc/github/nodebb/NodeBB/node_modules/async/lib/async.js:52:16
at Object._onImmediate (/home/rupert/sc/github/nodebb/NodeBB/node_modules/async/lib/async.js:1201:34)
at processImmediate [as _immediateCallback] (timers.js:336:15)
Hi,
I tried working with tag v0.9.3. When I start it up, on selecting the first topic in the discussions group, the wait/spinner in the top right corner just keeps on spinning and the topic never opens. Redis is running on the correct port and available.
So I'm wondering... what is the current stable version?