@BuZz
sorry I misread / missed the top @nodebb - but it doesn't look right with
location @nodebb {
proxy_pass http://127.0.0.1:4567;
}
location ~ ^/assets/(.*) {
root /path/to/nodebb/;
try_files /build/public/$1 /public/$1 @nodebb;
}
location /plugins/ {
root /path/to/nodebb/build/public/;
try_files $uri @nodebb;
}
location / {
proxy_pass http://io_nodes;
}
location /
gets passed onto io_nodes which contains the upstream servers, but location @nodebb
gets passed onto a specific nodebb only ? I guess that should contain proxy_pass http://io_nodes;
also ?
I realise this is additional config from the basic - but then the original config already has a location /
in it with the proxy settings, which won't be used for the @nodebb location.
Would be interested in what a "subfolder" config should look like, as the one I have just been making seems a little over complicated - it would be nice to just have a single location with try_files as I had before, which checks public folder / build etc, then passes it onto nodebb if nothing found.
[edit] I see the proxy settings location was mentioned previously - but the documentation isn't updated to move the proxy settings inside the server block, which would be needed with the new config I think.
I also have now noticed the "full config" after which looks correct and has both locations referencing http://io_nodes;
and has the proxy settings under the server.