No it goes in library.js since it's a server side hook. And you need to add the corresponding entry in plugin.json.
// library.js myPlugin.filterMiddlewareRender = async (hookData) => { hookData.templateData.user = await user.getUserData(hookData.req.uid); return hookData; }; //plugin.json "hooks": { "filter:middleware.render": "filterMiddlewareRender" ... }NGINX not working
-
I got Node sucessfully installed, however I can't get NGINX to proxy the port
http://13.59.10.43:4567
Workshttp://13.59.10.43
Gives me a 504 error and some users report it trying to redirect to port 8080 like a fallbackThanks
-
Also, I had someone who is good with NGINX look at it and they could not figure it out
-
What is your nginx config?
-
-
I meant what is the nginx config file for your forum. It should contain a
server
block and at least onelocation
block -
Sorry my fault, I have that, just sent the wrong file. When I get home today I can take care of it. I deleted the last post with the error log because of the spam, but require a moderator to remove it.
@PitaJThanks