Yes you can use them inside the AMD module but keep in mind once you add an event listener on the window object it will be called everytime there is an action:ajaxify.end. If you don't want it triggered after you leave that page you need to turn it off with $(window).off('eventName', myMethod)
[Solved] HTTPS behind Nginx proxy, "logged ip's" == 127.0.0.1?
So I setup NodeBB to run behind an Nginx proxy to allow site-wide HTTPS, and allow omitting of port 4567 in the URL.
Because of this, "Recently Logged In IPs" is always 127.0.0.1 Which makes sense to me. However I noticed community.nodebb.org is all HTTPS, yet it will show the actual IP I logged in from.
Is it possible to show the real logged-in IP while running behind an Nginx proxy?
Set the proxy_pass in nginx config to be the IP address of the server. using localhost can cause issues. Also, make sure your base_url in config.json is the same as it is for server_name in nginx.
@a_5mith That worked! Thank you so much!