I had the same issue before, make sure to add the forum next to location in your nginz
Location /forum
And apart from the /forum on your local proxy change it on your configuration. Js on in your nodebb folder
Sorry am from mobile and it's kinda hard to paste code